for(x in r=readline())print('ABCDEFGHIJKLMNOPQRSTUVWXYZ'.match(".*"+r[x])||'')