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