#define _USE_MATH_DEFINES #include //cin, cout #include //vector #include //sort,min,max,count #include //string,getline, to_string #include //abs(int) #include //swap, pair #include //deque #include //INT_MAX #include //bitset #include //sqrt, ceil. M_PI, pow, sin #include //fixed #include //setprecision #include //stringstream #include //gcd, assumlate #include //randam_device #include //numeric_limits using namespace std; constexpr long long int D_MOD = 1000000007; int main() { char c; cin >> c; string ans; switch (c) { case 'Z':ans = "1st"; break; case 'B':ans = "2nd"; break; case 'S':ans = "3rd"; break; case 'E':ans = "4th"; break; case 'D':ans = "Alpha"; break; } cout << ans << endl; return 0; }