#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <math.h>
#include <string.h>


int main()
{

    char password[20]; //Bucky did not tell us how many symbols so i took 20 :)
    int a,b,z,x,c; //a and b are same counter   z,x,c are integers to count at least 1 Needed symbol
    a,z,x,c = 0;

    printf("Enter password: ");
    scanf(" %s",password);


    for (a=0; a<=20;a++){       //this loop checks an array
        if(isalpha(password[a]) || isdigit(password[a]) || password[a] == '$' )
        {
           //Empty just checks
        }
        b = a;   
    }

    for (a = 0; a<=b; a++){ //this loops checks if there is at least one Upper,digit and $
       if(isupper(password[a])){
        z++;
       }
       if(isdigit(password[a])){
        x++;
       }
       if(password[a] == '$'){
        c++;
       }
    }

    if (z>0 && x>0 && c>00){
        printf("Good password");
    }else{
        printf("Go away fucker");
    }

    return 0;
}