#include using namespace std; int main() { char s; cin >> s; if (s == 'C' or s == 'A' or s == 'D' or s == 'F' or s == 'G') cout << s<<'#'<< endl; else if (s == 'E') cout << 'F' << endl; else cout << 'C' << endl; return 0; }