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