import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); double x = sc.nextInt() * 1000.0; double y = sc.nextInt() * 1000.0; double h = sc.nextInt(); int count = 0; while (x > h || y > h) { count++; if (x > h && (y <= h || x <= y)) { x /= 2; h *= 2; } else { y /= 2; h *= 2; } } System.out.println(count); } }