import std.stdio;void main(){char c,s=*readln%2;for(;~scanf(s?&*"%c":&*"%2x",&c);)writef(s?"%X":"%s",c);c%2||write("A");}