const lines = require('fs') .readFileSync('/dev/stdin', 'utf-8') .trim().split('\n').values(); const S = lines.next().value; console.log(Math.max(...S.match(/…+/g).map(x => x.length)));