#include <iostream>
#include <string>
using namespace std;


int main()
{

//Get the password from user at least 3 characters long
    string pass = "";
  do{

 cout << "Enter your password: "<<endl;
 cin >>pass;
  }while(pass.size()<3);

    int uppercase = 0;
    int number =0;
    int dollar = 0;

//go over iteration
   for(int i =0;i < pass.size();i++)
{
       char spass = pass.at(i);

//if password is  uppercase
    if(isupper(spass))

    {
 // increment uppercase
      uppercase++;
    }
// if password is digit
    if(isdigit(spass))

    {
   // increment digit
        number++;
  //if password is dollar sign
    if(spass=='$')

    {
    // increment dollar
       dollar++;
    }
}
    //if spass equals uppercase and spass equals number and spass equals dollar

     if(uppercase >= 1 && number >= 1 && dollar>= 1)
    {

  //output your password is strong
    cout << "Your password is strong! " << endl;
    }
//otherwise
else
{
//output your password is weak
cout << "Your password is weak! " << endl;
}

return 0;
}