a,b,c=list(map(int,input().split()))

k=int(eval(input()))

d={"a":a,"b":b,"c":c}

for i in range(k+1):

    if d["a"]<d["b"]<d["c"]:

        print("Yes")

        exit()

    elif d["a"]>=d["c"]:

        d["c"]*=2

    elif d["a"]>=d["b"]:

        d["b"]*=2

    elif d["b"]>=d["c"]:

        d["c"]*=2

print("No")
a,b,c=list(map(int,input().split()))

d={"a":a,"b":b,"c":c}

for i in range(int(eval(input()))+1):

    if d["a"]<d["b"]<d["c"]:

        print("Yes")

        exit()

    elif d["a"]>=d["c"]: d["c"]*=2

    elif d["a"]>=d["b"]: d["b"]*=2

    elif d["b"]>=d["c"]: d["c"]*=2

print("No")

a, b, c = list(map(int, input().split()))
k = int(eval(input()))
d = {"a": a, "b": b, "c": c}
for i in range(k + 1):
    if d["a"] < d["b"] < d["c"]:
        print("Yes")
        exit()
    elif d["a"] >= d["c"]:
        d["c"] *= 2
    elif d["a"] >= d["b"]:
        d["b"] *= 2
    elif d["b"] >= d["c"]:
        d["c"] *= 2
print("No")

a, b, c = list(map(int, input().split()))
d = {"a": a, "b": b, "c": c}
for i in range(int(eval(input())) + 1):
    if d["a"] < d["b"] < d["c"]:
        print("Yes")
        exit()
    elif d["a"] >= d["c"]:
        d["c"] *= 2
    elif d["a"] >= d["b"]:
        d["b"] *= 2
    elif d["b"] >= d["c"]:
        d["c"] *= 2
print("No")

-k = int(eval(input())) -for i in range(k + 1): +for i in range(int(eval(input())) + 1):