#include using namespace std; int main() { char S; cin >> S; switch (S) { case 'B':; case 'E': cout << (S+1) << endl; break; default: cout << S << "#" << endl; break; } }