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

int main()
{
    char password[20];
    printf("Enter password:\n");
    scanf("%s",password);
    int i=0,upper_case=0,digit=0,dollar_sign=0;
    for( ; i<=strlen(password); i++)
    {
        if(isupper(password))
        upper_case++;
        if((isdigit(password)))
        digit++;
        if(password=='$')
        dollar_sign++;
        if(upper_case!=0 && digit!=0 && dollar_sign!=0)
        {
            printf("good password");
            break;
        }
    }
    if(i>=strlen(password))
        {
            printf("choose another password");
        }

  return 0;
}