import sequtils, strutils, algorithm, math, future, sets, tables, hashes, intsets let read = iterator : string {.closure.} = (while true: (for s in stdin.readLine.split : yield s)) var x,y,h = read().parsefloat maxv = int.low h = h / 1000 proc dfs(x,y,h: float, cnt: int) = if h >= x and h >= y: maxv = max(maxv, cnt) else: if x > h: dfs(x / 2, y, h * 2, cnt + 1) if y > h:dfs(x, y / 2, h * 2, cnt + 1) dfs(x,y,h,0) echo maxv