for (i in 0 to 31) { let a = read_line(); if (a.[1] == a.[2]) { Js.log(String.sub(a, 2, 2)); } else { Js.log(String.sub(a, 4, 4)); }; };