import java.io.PrintWriter; import java.util.*; public class Main { Scanner sc = new Scanner(System.in); PrintWriter out = new PrintWriter(System.out); public static void main(String[] args) { new Main().run(); } void run() { double x = sc.nextDouble()*1000; double y = sc.nextDouble()*1000; double h = sc.nextDouble(); int ans = 0; label: while (x>h || y>h) { if (yh) { x /= (double)2; h *= 2; ans++; continue label; } y /= (double)2; h *= 2; ans++; } out.print(ans); out.flush(); } }