process.stdin.resume(); process.stdin.setEncoding('utf8'); // 自分の得意な言語で // Let's チャレンジ!! var lines = []; var reader = require('readline').createInterface({ input: process.stdin, output: process.stdout }); reader.on('line', (line) => { lines.push(line); }); reader.on('close', () => { let s = lines[0]; let count = 0; let ans = 0; for(let i = 0;i < s.length; i++) { if(s[i] == '…') { count++; }else { ans = Math.max(ans,count); count = 0; } } ans = Math.max(ans,count); console.log(ans); });