i = 0; for i 0 i 31 i 1 do a,b = io.read("*n","*n") if a % 10 == a % 100 - a % 10 then io.write (a%10) else io.write (b/100) end end