#include using namespace std; int main(){ char S; cin >> S; if (S == 'E' || S == 'B'){ S++; cout << S << endl; } else { cout << S << '#' << endl; } }