#include using namespace std; int main() { vector data = {'_', '-', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9'}; string s; cin >> s; int ss = s.size(); bool ans = true; if (0 < ss && ss < 33) { vector a(ss, 0); for (int i = 0; i < ss; i++) { char si = s[i]; for (int j = 0; j < 64; j++) { if (si == data[j]) a[i] = 1; } if (i == 0 || i == ss-1) { if (s[i] == data[0] || s[i] == data[1]) a[i] = 0; } } for (int i = 0; i < ss; i++) { if (!a[i]) ans = false; } } else { ans = false; } if(ans) { cout << 200 << endl; } else { cout << 400 << endl; } }