package main import."fmt" func main(){var s,t string;var i=0;for i<32{Scan(&s, &t);if s[1]==s[2]{Print(s[2])}else{Print(t[0])};i++}}