let str = readline();
console.log(str.split(' ').reverse()[0].length)