#include using namespace std; #ifdef _RUTHEN #include #else #define show(...) true #endif using ll = long long; #define rep(i, n) for (int i = 0; i < (n); i++) template using V = vector; int main() { ios::sync_with_stdio(false); cin.tie(0); string S; cin >> S; if (S[0] == 'Z') { cout << "1st\n"; } else if (S[0] == 'B') { cout << "2nd\n"; } else if (S[0] == 'S') { cout << "3rd\n"; } else if (S[0] == 'E') { cout << "4th\n"; } else { cout << "Alpha\n"; } return 0; }