#include using namespace std; int main() { string S; cin >> S; if(S == "A" || S == "C" || S == "D" || S == "F" || S == "G") { cout << S+"#" << endl; } else if(S == "E") { cout << "F" << endl; } else { cout << "C" << endl; } }