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