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