const line=readline();

const arr=line.split(" ")

let i = arr.length-1

console.log(arr[i].length)