class Yukicoder def initialize s = gets.chomp max_count = 0 count = 0 s.chars.each do |ch| if ch == '…' count += 1 else count = 0 end max_count = [max_count, count].max end puts max_count end end Yukicoder.new