function Main(input) { var arr, ret, i, len; arr = input.match(/…+/g); len = arr.length; ret = 0; for(i = 0; i < len; i++) { if(arr[i].length > ret) { ret = arr[i].length; } } console.log(ret); } // Don't edit this line! Main(require("fs").readFileSync("/dev/stdin", "utf8"));