s="ZBSED" S,n,i=input()[0],5,0 for c in s: if S==c:n=i i+=1 print(["1st","2nd","3rd","4th","Alpha","No"][n])