#include #include #include #include #include #include #include using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) using ll = long long; using P = pair; int main() { char S; cin >> S; if(S=='A' || S=='C' || S=='D' || S=='F' || S=='G') { cout << S << '#' << endl; } else { if(S == 'B') { cout << 'C' << endl; } else { cout << 'F' << endl; } } }