object Main { def main(args: Array[String]): Unit = { println((Array(0) ++ (("…+".r findAllIn readLine).map(_.length))).max) } }