#include<iostream>
#include<vector>
#include<string>
using namespace std;
// 判断字符是否为小写字母
bool isLower(char ch)
{
	return ch >= 'a' && ch <= 'z';
}
 
// 判断字符是否为大写字母
bool isUpper(char ch)
{
	return ch >= 'A' && ch <= 'Z';
}
 
// 判断字符是否为数字
bool isDigit(char ch)
{
	return ch >= '0' && ch <= '9';
}
 
int main() {
    string input_str;
    getline(cin, input_str);
    int result1 = input_str.find("<");
     while(result1 != -1)
     {
        string temp_str = "";
        temp_str += input_str.substr(0, result1-1);
        temp_str += input_str.substr(result1 + 1);
        input_str = temp_str;
        result1 = input_str.find("<");
     }
    int len = input_str.length();
    bool contains_lower = false;
    bool contains_upper = false;
    bool contains_digit = false;
    bool contains_special = false;
    for (int index = 0; index < len; index++) 
    {
        char c = input_str[index];
        if(isLower(c))
        {
            contains_lower = true;
        }
        else if(isUpper(c))
        {
            contains_upper = true;
        }
        else if(isDigit(c))
        {
            contains_digit = true;
        }
        else
        {
            contains_special = true;
        }
        
    }
    if(contains_lower && contains_upper && contains_digit && contains_special)
    {
        cout<<input_str + ",true"<<endl;
    }
    else 
    {
        cout<<input_str + ",false"<<endl;
    }
    
    return 0;
}