#include #include #include using namespace std; int main() { cin.tie(nullptr); ios::sync_with_stdio(false); const array subtitles = { 'B', 'D', 'E', 'S', 'Z' }; const char* numberings[] = { "2nd", "Alpha", "4th", "3rd", "1st" }; char S; cin >> S; cout << numberings[lower_bound(subtitles.begin(), subtitles.end(), S) - subtitles.begin()] << '\n'; return 0; }