func main() var ss: [][]char :: cui@input().split(" ") var x0: int :: ss[0].toInt(&) * 1000 var y0: int :: ss[1].toInt(&) * 1000 var h0: int :: ss[2].toInt(&) var ans1: int :: 0 var ans2: int :: 0 var x: int var y: int var h: int do x :: x0 do y :: y0 do h :: h0 while(x > h) do h :* 4 do y :* 2 do ans1 :+ 1 end while while(y > h) do h :* 4 do x :* 2 do ans1 :+ 1 end while do x :: x0 do y :: y0 do h :: h0 while(y > h) do h :* 4 do x :* 2 do ans2 :+ 1 end while while(x > h) do h :* 4 do y :* 2 do ans2 :+ 1 end while var ans: int :: [ans1, ans2].max() do cui@print("\{ans}\n") end func