#include <bits/stdc++.h> #include <vector> #include <iostream> #include <map> #include <string> #include <cmath> #include <algorithm> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) using ll = long long; using P = pair<int, int>; 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; } } }