#pragma GCC target("avx2") #pragma GCC optimize("O3") #pragma GCC optimize("unroll-loops") #include using namespace std; typedef long long ll; typedef long long ull; constexpr int dx[]={1,0,0,-1},dy[]={0,1,-1,0}; constexpr int Dx[]={1,1,0,-1,-1,-1,0,1},Dy[]={0,1,1,1,0,-1,-1,-1}; constexpr int mod=998244353,Mod=1e9+7,inf=Mod; constexpr ll linf=(ll)inf*inf; //* #include using namespace atcoder; //*/ int main(){ string s; cin>>s; cout<<(s[0]=='Z'?"1st":s[0]=='B'?"2nd":s[0]=='S'?"3rd":s[0]=='E'?"4th":"Alpha")<