package main //f(){char s[9];for(;gets(s);putchar(s[s[1]-s[2]?4:2]));} import "C" func main(){C.f()}