#include #include using namespace std; int main() { string S; cin >> S; // 1. Length check if (S.length() < 1 || S.length() > 32) { cout << 400 << endl; return 0; } // 2. First and last character check if (S.front() == '_' || S.front() == '-' || S.back() == '_' || S.back() == '-') { cout << 400 << endl; return 0; } // 3. Character validation for (char c : S) { if (!( (c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z') || (c >= '0' && c <= '9') || c == '_' || c == '-' )) { cout << 400 << endl; return 0; } } // If all checks passed cout << 200 << endl; return 0; }