1 2 3 4 5 6 7 8 9
input = $stdin.read.strip.chars somm = 0 until input[somm, 14].uniq.count == 14 do somm += 1 end puts somm + 14