def f(s:String,t:String):Int=1 to' 'indexWhere{i=>val(u,v)=s splitAt s.size-i v>="1"&&v.toLong=0)} while(0<1)println(f(readLine,"9"*11)+1)