const input = require('fs') .readFileSync('/dev/stdin', 'utf8'); console.log( input.includes('…') ? Math.max(...input .match(/(…+)/g) .map(v => v.length)) : 0 );