#include <iostream>
#include<cctype>
using namespace std;

bool validatePassword(const string& password){
    if(password.length()<1 || password.length()>10){
        return false;
    }
    bool hasLowercase = false;
    bool hasUppercase = false;
    bool hasDigit = false;
    bool hasSpecialChar = false;
    
    for(char c : password){
        if(islower(c)){
            hasLowercase = true;
        }
        else if(isupper(c)){
            hasUppercase = true;
        }
        else if(isdigit(c)){
            hasDigit = true;
        }
        else if(c == '$' || c=='#' || c=='@'){
            hasSpecialChar = true;
        }
    }
    return hasLowercase && hasUppercase && hasDigit && hasSpecialChar;
}