#include #include using namespace std; string s; int i,p; bool v1,v2,v3,ok; bool litera(char ch) { if ((('A'<=ch) && (ch<='Z')) || (('a'<=ch) && (ch<='z'))) return true; else return false; } bool lower(char ch) { if (('a'<=ch) && (ch<='z')) return true; else return false; } bool cifra(char ch) { if (('0'<=ch) && (ch<='9')) return true; else return false; } bool corect(char ch) { if (litera(ch) || (ch=='[') || (ch==']') || (ch=='+') || (ch=='-') || cifra(ch)) return true; else return false; } int main() { while (!cin.eof()) { getline(cin,s); ok=true; v1=v2=v3=0; p=0; for (i=0;i