-export([main/1]). f()->{_,[B,C,E]}=io:fread("","~*c~c~c ~c~*s"),io:format(case B==C of true->B;false->E end). main(_)->[f()||_<-lists:seq(1,32)].