#include using namespace std; using ll = long long; const int INF = 1e9 + 10; const ll INFL = 4e18; int main() { string S; cin >> S; string str = "ZBSED"; vector ans = {"1st", "2nd", "3rd", "4th", "Alpha"}; cout << ans[str.find(S[0])] << endl; }