#include using namespace std; int main(){ string s1="CDEFGABC",s2="ACDFG"; string s; cin>>s; if(s2.find(s)<5){ cout<