n:stdin.get_s(9).to_i;while(n.p>0)n-=math::pow(10,math::log(n)/2.4 .to_i);