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