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