data = []
i = 0

while n = gets
        data[i] = n.chomp.to_s
        data[i] = data[i].split
        data[i] = (data[i][0].to_i + data[i][1].to_i).to_s
        i += 1
end

for i in 0...i
        puts data[i].length
end

