console.log(Math.max(...require("fs").readFileSync("/dev/stdin", "utf8").trim().split("\n")[0].match(/…*/g).map(x=>x.length)));