#!/usr/bin/env python3 # -*- coding: utf-8 -*- import array from bisect import * from collections import * import fractions import heapq from itertools import * import math import random import re import string import sys x, y, h = map(int, input().split()) x *= 1000 y *= 1000 ans = 0 while x > h or y > h: x, y = min(x, y), max(x, y) ans += 1 if x > h: y *= 2 h *= 4 elif y > h: x *= 2 h *= 4 # print(x, y, h) print(ans)