#define rep(i,n) for(int i=0;i<(int)(n);i++) #define ALL(v) v.begin(),v.end() typedef long long ll; #include using namespace std; int main(){ ios::sync_with_stdio(false); std::cin.tie(nullptr); string t="ZBSE"; string s; cin>>s; vector A={"1st","2nd","3rd","4th"}; rep(i,4){ if(s[0]==t[i]){ cout<