#include using namespace std; int main(){ string S0; cin >> S0; if (S0[0]=='Z') cout << "1st" << endl; if (S0[0]=='B') cout << "2nd" << endl; if (S0[0]=='S') cout << "3rd" << endl; if (S0[0]=='E') cout << "4th" << endl; if (S0[0]=='D') cout << "Alpha" << endl; return 0; }