char s[9];main(){for(;gets(s);putchar(s[s[1]-s[2]?4:2]));}