package main import f "fmt" func main(){ for i:=0;i<32;i++{ var a,b string f.Scan(&a,&b) if a[1]==a[2]{ f.Print(a[2]-'0') }else{ f.Print(b[0]-'0') }}}