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