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