#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; typedef long long LL; typedef unsigned long long ULL; #define MEM(a,b) memset((a),(b),sizeof(a)) const LL INF = 1e9 + 7; const int N = 1e5 + 10; int main() { //freopen("input.txt", "r", stdin); //freopen("output.txt", "w", stdout); string str; cin >> str; if (str[0] == 'Z') puts("1st"); else if (str[0] == 'B') puts("2nd"); else if (str[0] == 'S') puts("3rd"); else if (str[0] == 'E') puts("4th"); else puts("Alpha"); return 0; }