#include #include using namespace std; bool available(char c) { return ( ('a' <= c && c <= 'z') || ('A' <= c && c <= 'Z') || ('0' <= c && c <= '9') || (c == '-') || (c == '_')); } int main(void) { string s; cin >> s; if (s[0] == '-' || s[0] == '_') { cout << 400; return 0; } for (auto c : s) { if (!available(c)) { cout << 400; return 0; } } if (s[s.length() - 1] == '-' || s[s.length() - 1] == '_') { cout << 400; return 0; } cout << 200; return 0; }