#include <bits/stdc++.h>
using namespace std;

int main()
{
    cin.tie(0)->sync_with_stdio(0);

    char c;
    cin >> c;

    if (c == 'E' || c == 'B') {
        cout << char(c + 1) << endl;
    } else {
        cout << c << '#' << endl;
    }
}