s = list(map(str,input().split())) if s[0]=='Zelkova': print('1st') elif s[0]=='BANNED': print('2nd') elif s[0]=='Stray': print('3rd') elif s[0]=='Early': print('4th') elif s[0]=='Do': print('Alpha')