fun main(){println(Math.floor(Math.abs(Math.log10(readLine()!!.toDouble())-9)).toInt())}