peterverebics/CodeNet_Python_118 huggingface dataset:
a, b, c = map(int, input().split())
k = int(input())
c = c*2
if k > 1:
  for i in range(1,k):
    if b < c:
      b = b*2
    elif b > c:
      c = c*2
if a < b and b < c:
  print('Yes')
else:
  print('No')
from math import ceil
a,b,c=map(int,input().split())
k=int(input())
if b<=a:
    bm = ceil((a + 1) / b)
    b *= bm
    k -= (bm+1)//2
if c<=b:
    cm = ceil((b + 1) / c)
    k -= (cm+1)//2
if k<0:
    print("No")
else:
    print("Yes")
a, b, c = map(int, input().split())
k = int(input())

for _ in range(k):
  if a >= b:
    b = b ** 2
  elif b >= c:
    c = c ** 2
    
if a < b < c:
  print("Yes")
else:
  print("No")
a, b,c  = map(int, input().split()) 
k  = int(input()) 

for i in range(k):
  if b > c:
    c *= 2
  elif a > b:
    b *= 2
  else:
    c *= 2

if (b > a) and (c > b):
  result = "Yes"
else:
  result = "No"
    
print(result)
A, B, C = map(int, input().split())
K = int(input())
a=0
for i in range(K):
    i += 1
    if B*(2**i) > A:
        if C*(2**(K-i)) > B*(2**i):
            print('Yes')
            a=1

if a==0:
    print('No')
A, B, C = map(int, input().split())
K = int(input())
Ak = 0

for i in range(K):
    if A > B:
        B = B * 2
        Ak = i

    else:
        break

if K - Ak > 0:
    for j in range(K - Ak):
        if B > C:
            C = C * 2
else:
    print("No")
    exit()

if A < B and B < C:
    print("Yes")
else:
    print("No")
a, b, c = map(int, input().split())
k = int(input())
flg = False
for i in range(k+1):
  b = (2**i) * b
  c = (2**(k-i)) * c
  if a < b < c:
    flg = True
    break

if flg:
  print('Yes')
else:
  print('No')
a, b, c = input().split()
k = int(input())

for _ in range(k):
  if int(a) > int(b):
    b = int(b) * 2
  else:
    c = int(c) * 2
    
if int(a) < int(b) and int(b) < int(c):
  print("Yes")
else:
  print("No")
a,b,c = map(int,input().split())
k = int(input())

while k > 0:
  if a > b:
    b *= 2
    k -= 1
  else:
    break

while k > 0:
  if b > c:
    c *= 2
    k -= 1
  else:
    break
    
if a < b and b < c:
  print("Yes")
else:
  print("No")
import io
import os

from collections import Counter, defaultdict, deque


def solve(A, B, C, K):
    k = 0
    while A >= B:
        B *= 2
        k += 1
    while B >= C:
        C *= 2
        k += 1
    if k <= K:
        return "YES"
    return "NO"


if __name__ == "__main__":
    input = io.BytesIO(os.read(0, os.fstat(0).st_size)).readline
    A, B, C = [int(x) for x in input().split()]
    K, = [int(x) for x in input().split()]  

    ans = solve(A, B, C, K)
    
    print(ans)
a, b, c = map(int, input().split())
k = int(input())
for i in range(k):
    if a > b:
        b *= 2
    elif b > c:
        c *= 2
if a < b < c:
    print("Yes")
else:
    print("No")
a,b,c = map(int, input().split())
x = int(input())
for _ in range(x):
    if a > b:
        b *= 2
    elif b > c:
        c *= 2
    if a < b and b < c:
        print('Yes')
        exit()
print('No')
array = list(map(int, input().split(' ')))

K = int(input())

for i in range(K):
  if array[2] == max(array):
    if array[0] > array[1]:
      array[1] = array[1] * 2
    else:
      array[0] = array [0] * 2
  else:
    array[2] = array[2] * 2

if array[0] < array[1] and array[1] < array[2]:
  print('Yes')
else:
  print('No')
A,B,C=map(int,input().split())
K=int(input())
i=0
while B<A:
    for i in range(K):
        B*=2
while C<B:
    for j in range(K-i):
        C*=2
if A<B and B<C:
    print("Yes")
else:
    print("No")
A, B, C = map(int, input().split())
K = int(input())

for i in range(K):
    if B <= A:
        print('a')
        B *= 2
        
    elif C <= B:
        print('b')
        C *= 2
        
    else:
        print('C')
        C *= 2
        
if A < B and B < C:
    print('Yes')
    
else:
    print('No')
A, B, C = map(int, input().split())
K = int(input())

for _ in range(K):
    if A > B:
        B *= 2
    elif B > C:
        C *= 2
    else:
        A *= 2

if A < B < C:
    print('Yes')
else:
    print('No')
a = list(map(int,input().split()))
k = int(input())
#青＞緑＞赤
r,g,b = 0,0,0
for i,num in enumerate(a):
    if i==0:
        r = num
    elif i==1:
        g = num
    elif i==2:
        b = num

for i in range(k):
    if b<g and b*2>g:
        b *= 2
    elif g<r and g*2>r:
        g *= 2
    elif r*2<g and r*2<b:
        r*=2

if b>g and g>r:
    print("Yes")
else:
    print("No")
A, B, C = input().split(" ")
K = int(input())

A, B, C = int(A), int(B), int(C)

for i in range(K):
  if A > B:
    B = B*2
  elif B > C:
    C = C*2

if B > A and C > B:
  print("Yes")
else:
  print("No")
numbers = [int(s) for s in input().split()] #0:赤, 1:緑, 2:青
K = int(input())
for i in range(K):
    if(numbers[2] < numbers[0]):
        numbers[2] *= 2
        
    elif(numbers[1] < numbers[0]):
        numbers[1] *= 2
        
    elif(numbers[2] < numbers[1]):
        numbers[2] *= 2
        
    else:
        break
if(numbers[1] > numbers[0] and numbers[2] > numbers[1]):
    print("Yes")
else:
    print("No")
r, g, b = map(int, input().split())

K = int(input())

while K > 0:
  if g < r:
    g *= 2
    K -= 1
  elif b < g:
    b *= 2
    K -= 1
  else:
    break
    




if g > r and b > g:
  print("Yes")
else:
  print("No")
import itertools
l = list(map(int,input().split()))
k = int(input())
p = list(itertools.combinations_with_replacement([0,1,2], k))
f = False

ans = 0
for i in p:
  a = (l[0] * 2 * i.count(0) if i.count(0) else 1)
  b = (l[1] * 2 * i.count(1) if i.count(1) else 1)
  c = (l[2] * 2 * i.count(2) if i.count(2) else 1)
  if a<b<c:
    f = True

if f == False:
  print("No")
else:
  print("Yes")
a, b, c = map(int, input().split())

k = int(input())

for i in range(k):
    if a < b and b < c:
        print('Yes')
        exit()
    elif a > b:
        b = 2 * b
    elif b > c:
        c = 2 * c
    # print(a, b, c)

if a < b and b < c:
    print('Yes')
    exit()

print('No')
a,b,c = map(int, input().split())
k = int(input())

ans = "No"
for _ in range(k+1):
    if a < b and b < c:
        ans = "Yes"
        break
    elif b < a:
        b *= 2
    elif c < b:
        c *= 2
print(ans)
a,b,c = map(int,input().split())
k = int(input())
res = True
for i in range(k):
    if b > a:
        if c > b:
            break
        else:
            c *= 2
    elif b < a:
        b *= 2
res = a < b < c
if res:
    print("Yes")
else:
    print("No")
A,B,C = map(int, input().split())
K = int(input())

for i in range(K):
    if A > B:
        B *= 2
    else:
        C *= 2

if A < B and B < C:
    print('Yes')
else:
    print('No')
a,b,c = map(int,input().split())
k = int(input())

i = 0
for i in range(k):
    if(b>c):
        c = c*2
    elif(a>b):
        b = b*2
    else:
        break
if(a<b<c):
    print('Yes')
else:
    print('No')
A, B, C = map(int, input().split())
K = int(input())
while A > B:
    B *= 2
    K -= 1
while B > C:
    C *= 2
    K -= 1
if K >= 0 and A < B < C:
    print('Yes')
else:
    print('No')
a,b,c=map(int,input().split())
k=int(input())
ans=["Yes","no"]
while b<=a:
  b*=2
  k-=1
while c<=b:
  c*=2
  k-=1
print(ans[0] if k>=0 else ans[1])
a,b,c=map(int,input().split())
k=int(input())
i=0
while a>=b:
    b*=2
    i+=1
  

while b>=c:
        c*=2
        i+=1

if a<b and b<c:
    print("Yse")
else:
    print("No")
a,b,c=map(int, input().split())
k = int(input())

for i in range(k):
    if a > b:
        b = b*2
    elif b > c:
        c = c*2
if a < b and b < c:
    print("Yes")
else:
    print("No")
import math
a,b,c = [int(x) for x in input().split()]
k = int(input())
a1,b1,c1 = math.log2(a),math.log2(b),math.log2(c)
k1,k2 = 0,0
if b1<a1:
    k1 = math.floor(a1-b1+1)
    b1 = b1+k1
if c1<b1:
    k2 = math.floor(b1-c1+1)
if k1+k2<=k:
    print("Yes")
else:
    print("No")
A,B,C = [int(x) for x in input().split()]
K=int(input())
 
while(A>B):
  K-=1
  if K==0:
    print("No")
    exit()
  B=B*2
 
while(B>C):
  C=C*2
  if K==1:
    break
  K-=1
  if K==0:
    print("No")
    exit()
print("Yes")
cards = list(map(int,input().split()))
K = int(input())
for i in range(K):
    if cards[1]>cards[2]:
        cards[2]*=2
    elif cards[0]>cards[1]:
        cards[1]=cards[1]*2
    else :
        cards[0]*=2

if cards[0]<cards[1]<cards[2]:
    print('Yes')
else:
    print('No')
A, B, C = list(map(int, input().split()))
K = int(input())

c = 0

while A >= B:
    B *= 2
    c += 1
    if c >= K:
        break
    while B >= C:
        C *= 2
        c += 1
        if c >= K:
            break

ans = 0
if A < B < C:
    ans = "Yes"
else:
    ans = "No"

print(ans)
R, G, B = list(map(int, input().split()))
K = int(input())

def f(R,G,B):
  if R<G and G<B:
    return 1
  elif R<G and G>B:
    return 2
  else:
    return 3

c = 0
fl = 0

while c <= K:
  c +=1
  if f(R,G,B)==1:
    fl = 1
    c = K+1
  elif f(R,G,B)==2:
    B = B*2
  else:
    G = G*2
    
if fl == 0:
  print("No")  
else:
  print("Yes")
a,b,c=map(int,input().split())
k=int(input())
i=0
while a>=b:
    b*=2
    i+=1
  

while b>=c:
        c*=2
        i+=1

if a<b and b<c and i<=k:
    print("Yse")
else:
    print("No")
a,b,c = map(int,input().split())
k = int(input())
x = 0
for i in range(1,k+1):
    if 2*i*b > a:
        x += i
        break
else:
    print('No')
    quit()
if 2*(k-x)*c > 2*x*b:
    print('Yes')
else:
    print('No')
A,B,C = map(int,input().split())
K = int(input())
cnt = 0
if B <= A :
    while B < A :
        B = B*2 
        cnt += 1
        break
    if C*(2**(K-cnt)) > B:
        print('Yes')
    else :
        print('No')
elif B > A :
    if C*(2**K) > B :
        print('Yes')
    elif C*(2**K) <= B:
        print('No')
a,b,c = map(int , input().split())
k = int(input())
while(k>=1):
    if c<b:
        c = c*2
    elif b<a:
        b = b*2
    else:
        a = a*2
    k-=1
if (a<b and b<c):
    print ("Yes")
else:
    print("No")
a, b, c = map(int, input().split())
k = int(input())

ans = 0
for x in range(1,k+1):
    for y in range(1,k+1):
        for z in range(1,k+1):
            if b**2*y > a**2*x and c**2*z > b**2*y:
                ans += 1

if ans >= 1:
    print("Yes")
else:
    print("No")
input_line = input()
input2 = input_line.rstrip().split(" ")
a,b,c = [int(i) for i in input2]
count = 0
max_num = int(input())
while count<=max_num:
  if a >= b:
    b*=2
    count += 1
  else:
    break
 

    
while count<=max_num:
  if b >= c:
    c*=2
    count += 1
  else:
    break
    
if a<b<c:
  print("Yes")
else:
  print("No")
A,B,C = map(int,input().split())
K = int(input())
cnt = 0
for _ in range(K):
	if A>B:
		B *= 2
		cnt += 1

for _ in range(K-cnt):
	if B>C:
		C *= 2

if (A<B) and (B<C):
	print('Yes')
else:
	print('No')
A,B,C = map(int, input().split())
K = int(input())
D = B
E = C
i1 = 0
i2 = 0
while(D<=A):
    D = D*2
    i1 +=1
while(E<=D):
    E = E*2
    i2 +=1
if K >= i1+i2+1:
    print("Yes")
else:
    print("No")
a, b, c = map(int, input().split())
k = int(input())
while k > 0:
    if c < b:
        c*=2
    elif b < a:
        b*=2
    k-=1
    if c>b>a:
        print("Yes")
        quit()
print("No")
li = input().split()
a=int(input())
magic = 0
for i in range(0,3):
    if li[0] >= li[1]:
        li[1] = li[1] * 2
        magic = magic + 1

for i in range(0,3):
    if li[1] >= li[2]:
        li[2] = li[2] * 2
        magic = magic + 1
        
if a >= magic:
    print("Yes")
else:
    print("No")
A, B, C = input().split()
A, B, C = [int(A), int(B), int(C)]
K = int(input())

for i in range(K):
    if(B > C or A > C):
        C = C * 2
    elif(A > B):
        B = B * 2
    else:
        C = C * 2

if(C > B > A):
    print("Yes")
else:
    print("No")
import sys
r,g,b = map(int,input().split())
k = int(input())
#青＞緑＞赤
count = 0
if g*(2**k)>r:
    while g<r:
        g*=2
        count += 1
else:
    print("No")
    sys.exit(0)

if b*(2**(k-count))>g and k<=count:
    print("Yes")
else:
    print("No")
A, B, C = map(int, input().split())
K = int(input())

for i in range(K):
    if A > B:
        B *= 2
    elif B > C:
        C *= 2
    else:
        break

if C > B > A:
    print('Yes')
else:
    print('No')
a = list(map(int, input().split()))
num = int(input())
k = 0
for i in range(num):    #num回２倍を繰り返す。でなければNoをprint
  if a[0] == max(a) or a[1] == max(a):   #リストaの中のmaxよりも青が小さいならば青を二倍する
    a[2] = a[2] * 2
    k += 1
  if a[1] == min(a) and k < num:
    a[1] = a[1] * 2
    k += 1
print(a)
if a[0] < a[1] and a[1] < a[2]:
  print("Yes")
else:
  print("No")
a,b,c=map(int,input().split())
k=int(input())

count=0
while a>=b:
    b=b*2
    count+=1

con=0
while b*count>=c:
    c=c*2
    con+=1

total=con+count

if total<=k:
    print('Yes')
else:
    print('No')
a,b,c=map(int,input().split())
k=int(input())
s=0
for i in range(4):
    if b*(2**i)>a:
        s=i
        break
b*=2**s
t=0
for i in range(4):
    if c*(2**i)>b:
        t=i
        break
if s+t>=k:
    print("No")
else:
    print("Yes")
A,B,C=list(map(int,input().split()))
K=int(input())


for i in range(K):
    if A>=B:
        B=2*B
    elif B>=C:
        C=2*C
    else:
        print('Yes')
        break
    
if A<B and B<C:
    print('Yes')
else:
    print('No')
from sys import stdin
a,b,c=map(int,stdin.readline().split())
k=int(stdin.readline())
for i in range(k):
  if i%2!=0:
    c*=2
  if i%2==0:
    b*=2
if c>b and b>a:
  print("Yes")
else:
  print("No")
A, B, C = map(int, input().split())
K = int(input())
cnt = 0

while A > B and cnt >= K:
    B = B*2
    cnt += 1

if cnt >= K:
    print("No")
else:
    while B > C and cnt >= K:
        C = C*2
        cnt += 1

if C > B:
    print("Yes")
else:
    print("No")
a,b,c=map(int,input().split())
k=int(input())
d=b
e=c
while a>b:
  b=b*2
while b>c:
  c=c*2
f=b/d
g=c/e
h=f//2
i=g//2
if k>=h+i:
  print('Yes')
else:
  print('No')
A, B, C = map(int, input().split())
K = int(input())
for i in range(1,8):
    B_after = B * (2 ** i)
    if B_after > A:
        i_ans = i
        break
for j in range(1,8):
    C_after = C * (2 ** j)
    if C_after > B_after:
        j_ans = j
        break
if i_ans + j_ans <=K:
    print('Yes')
else:
    print('No')
a,b,c = map(int,input().split())
k = int(input())
if b<=a:
    x = 0
    for i in range(k):
        b*=2
        if a < b:
            x += (i+1)
            break
    y = 2*(k-x) if k-x > 0 else 1
else:
    y = 0
    y += k
print(['No','Yes'][b<c*y])
a, b, c = map(int, input().split())
k = int(input())
while k > 0:
    if c < b:
        c*=2
    elif b < a:
        b*=2
    else:
        a*=2
    k-=1
print("Yes" if c>b>a else "No")
A, B, C = list(map(int, input().split()))
K = int(input())

c = 0
while A >= B:
    B *= 2
    c += 1
    # if c >= K:
    #     break
    while B >= C:
        C *= 2
        c += 1
        # if c >= K:
        #     break

print(A)
print(B)
print(C)

if c > K:
    ans = "No"
else:
    ans = "Yes"
print(ans)
A,B,C=map(int,input().split())
K=int(input())
flag = 0
for k in range(K):
    if B*(k+1)*2>A:
        Bnew=B*(k+1)*2
        newK = K - k - 1
        for newk in range(newK):
            if C * (newk + 1) * 2 > Bnew:
                print('Yes')
                flag=1
                break
        break

if flag == 0:
    print('No')
A,B,C=map(int,input().split())
K=int(input())

for i in range(0,K+1):
    for j in range(0,K+1-i):
        for k in range(0,K+1-i-j):
            #print('{},{},{}'.format(i,j,k))
            if(A*(2**i) < B*(2**j) and B*(2**j) < C*(2**k)):
                if(i==j==k==0):
                    break
                print('Yes')
                exit()

print('No')
a,b,c=map(int,input().split())
k=int(input())
c=0
while a>=b:
	b*=2
	c+=1
while b>=c:
	c*=2
	c+=1
if c<=k:
	print('Yes')
else:print('No')
a,b,c=(int(x) for x in input().split())
k=int(input())
ans=0
for i in range(0,k):
  c1=c*pow(2,i)
  b1=b*pow(2,(k-i))
  if a<b1 and b1<c1:
    ans=1
    break
  else:
    b1=b
    c1=c

if ans==1:
  print("Yes")
else:
  print("No")
a,b,c=map(int,input().split())
k=int(input())
for i in range(k+1):
    if a>b:
        b=b*2
    else:
        if b>c:
            c=c*2
        else:
            break

if a<b<c:
    print('Yes')
else:
    print('No')
import sys
r,g,b = map(int,input().split())
k = int(input())
#青＞緑＞赤
count = 0
if g*(2**k)>r:
    while g<r:
        g*=2
        count += 1
else:
    print("No")
    sys.exit()

if b*(2**(k-count))>g:
    print("Yes")
else:
    print("No")
a,b,c=map(int,input().split())
k=int(input())
if c>a/(2**k):
	for x in range(k+1):
		if b>a/(2**x):
			break
	else:
		print("No")
	y=k-x
	if c>b/(2**y):
		print("Yes")
	else: print("No")
else:
		print("Yes")
import sys
from math import ceil, floor, sqrt, sin, cos, pi
from itertools import accumulate, permutations, combinations
from fractions import gcd # 最大公約数
from collections import deque, Counter
from operator import itemgetter
from heapq import heappop,heappush
sys.setrecursionlimit(10**7)
def lcm(x, y): return ((x * y) // gcd(x, y)) # 最小公倍数
# list(map(int, input().split()))

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

for _ in range(k):
    if a > b:
        b *= 2
    else:
        c *= 2

if a < b < c:
    print('Yes')
else:
    print('No')
def main():
    a, b, c = map(int, input().split())
    k = int(input())
    for i in range(1, k+2):
        if a < b and b < c:
            print("Yes")
            return 0
        
        elif i == k+1:
            print("No")
            return 0

        elif c < a or c < b:
            c = c * 2

        elif b < a:
            b = b * 2

main()
A, B, C = list(map(int,input().split()))

K = int(input())

for i in range(K):
  if A < B < C:
    print("Yes")
    exit()
  elif C < B or C < A:
    C *= 2
    continue
  elif B < A:
    B *= 2
    continue

if A < B < C:
	print("Yes")
	exit()
else:
  print("No")
a,b,c=map(int,input().split())
k=int(input())

ans=0

while b <= a:
  b=b*2
  ans += 1
  
while c <= b:
  c=c*2
  ans += 1

if ans <= k:print("YES")
else:print("NO")
A,B,C=map(int,input().split())
K=int(input())
flag=True
for i in range(K):
    if A>B:
        B*=2
        continue
    if B>C:
        C*=2
        continue
    if C>B and B>A:
        flag=False
        break
if C>B and B>A:
    flag=False
print('Yes' if flag==False else "No")
a,b,c = map(int, input().split())
k = int(input())
t = 0
if(a>=b):
  while(a>=b):
    b = 2*b
    t +=1
if(b>=c):
  while(b>=c):
    c = 2*c
    t +=1
if(t<=k):
  print("Yes")
else:
  print("NO")
X = list(map(int,input().split()))
A = X[0]
B = X[1]
C = X[2]
K = int(input())
cnt = 0
if A > B:
  for i in range(K):
   B = B*2
   cnt = cnt + 1
   if A < B:
    break
if B > C:
  for j in range(K):
   C = C*2
   cnt = cnt + 1
   if B < C:
    break
if cnt <= K:
  print('Yes')
else:
  print('No')
a = list(map(int,input().split()))
#b = list(map(int,input().split()))
b=int(input())

for i in range(b):
    if a[0]<=a[1]<=a[2] or a[0]<=a[2]<=a[1] or a[2]<=a[1]<=a[0] or a[1]<=a[2]<=a[0] or a[2]<=a[0]<=a[1]:
        a[2]=2*a[2]
    if a[1]<=a[0]<=a[2]:
        a[1]=2*a[1]
if a[0]<a[1]<a[2]:
    print("Yes")
else:
    print("No")
A,B,C=map(int,input().split())
K=int(input())
list=[A,B,C]

for i in range(K):
    mini=min(list)
    for n in range(3):
        if mini==list[n]:
            list[n]=2*list[n]
           
A=list[0]
B=list[1]
C=list[2]

if A<B<C:
    print("Yes")
else:
    print("No")
A,B,C=map(int,input().split())
K=int(input())
list=[A,B,C]

for i in range(K):
    if list[0]<list[1]<list[2]:
        break
    if list[1]>list[2]:
        list[2]=2*list[2]
    elif list[0]>list[1]:
        list[1]=2*list[1]
    
    
    


if list[0]<list[1]<list[2]:
    print("Yes")
else:
    print("No")
a = list(map(int, input().split()))
k = int(input())
count = 0

while a[1] <= a[0]:
    a[1] = a[1]*2
    count += 1
while a[2] <= a[1]:
    a[2] = a[2]*2
    count += 1

if count > k:
    print('no')
else:
    print('yes')
a,b,c=map(int,input().split())
k=int(input())
for i in range(k):
  if b<=a:
    if c<=b:
      c*=2
    else:
      b*=2
  elif c<=b:
    c*=2
  else:
    a*=2

if a<b and b<c:
  print("Yes")
else:
  print("No")
def magic_2():
    a,b,c = map(int, input().split())
    k = int(input())
    my_list = [b,c]
    i = 0
    while i <= k-1:
        multiply_list = [items * 5 for items in my_list]
        i += 1
    new_list = [a] + multiply_list
    if new_list[0] < new_list[1] < new_list[2]:
        print("yes")
    else:
        print("No")
   
magic_2()
a, b, c = map(int, input().split())

k = int(input())

for i in range(k):
    if a < b and b < c:
        print("Yes")
        exit()

    elif a > b:
        b *= 2

    elif b > c:
        c *= 2

if a < b and b < c:
    print("Yes")
else:
    print("No")
a,b,c = map(int,input().split())
k = int(input())

if not a < b:
  b *=2
  k -=1
if not b < c:
  c *=2
  k -=1
  
if k <= 0:
  print('No')
  exit()
elif not a<b<c:
  print('No')
  exit()  

print('Yes')
def main(a, b, c, k):
    for _ in range(k + 1):
        if a >= b:
            b *= 2
        elif b >= c:
            c *= 2

        if a < b < c:
            print("Yes")
            return

    print("No")


if __name__ == "__main__":
    a, b, c = map(int, input().split())
    k = int(input())

    main(a, b, c, k)
a,b,c=map(int,input().split())
k=int(input())
if c>b and b>a:
    print("Yes")
    exit()
else:
    while(k>0):
        if b<a:
            b*=2
            k=k-1
        else:
            c*=2
            k=k-1
    if c>b and b>a:
        print("Yes")
    else:
        print("No")
import sys
r,g,b = map(int,input().split())
k = int(input())
#青＞緑＞赤
count = 0
if g*(2**k)>r:
    while g<r:
        g*=2
        count += 1
else:
    print("No")
    # sys.exit()

if b*(2**(k-count))>g:
    print("Yes")
else:
    print("No")
A,B,C = map(int,input().split())
K = int(input())
while K != 0:
  if A >= B:
    B *= 2
  elif B >= C:
    C *= 2
  K -= 1

if A < B < C:
  print("YES")
else:
  print("NO")
r, g, b = [int(x) for x in input().split()]
ops = int(input())
m = 0
if g < r:
    while g <= r:
        g *= 2
        m += 1
if b < g:
    while b <= g:
        b *= 2
        m += 1
print("Yes" if m <= ops  else "No")
a,b,c=map(int,input().split())
k=int(input())
for i in range(k):
  if b<a:
    if c<b:
      c*=2
    else:
      b*=2
  elif c<b:
    c*=2
  else:
    a*=2

if a<b and b<c:
  print("Yes")
else:
  print("No")
a,b,c=map(int, input().split())
k=int(input())

ans="no"
for i in range(k+1):
  if a<b<c:
    ans="yes"
  else:
    if a>=b:
      b*=2
    elif b>=c:
      c*=2


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

while(a[0] > a[1]):
    a[1] *= 2
    b -= 1
    if b <= 0:
        break
while(a[1] > a[2]):
    a[2] *= 2
    b -= 1
    if b <= 0:
        break
if a[0] < a[1] and a[1] < a[2] and b >= 0:
    print("Yes")
else:
    print("No")
x,y,z=map(int,input().split())
k=int(input())
while(1):
    if(k==0):
        break
    else:
        y=y*2
        k-=1
        if(y>x):
            break
while(1):
    if(k==0):
        break
    else:
        z=z*2
        k-=1
        if(z>y):
            break
if(x<y<z):
    print("Yes")
else:
    print("No")
a,b,c=(int(x) for x in input().split())
k=int(input())
ans=0
if k!=1:
  for i in range(0,k):
   c1=c*pow(2,i)
   b1=b*pow(2,(k-i))
   if a<b1 and b1<c1:
     ans=1
   else:
     b1=b
     c1=c
elif k==1 and a<b<c:
  ans=1
else:
  ans=0

if ans==1:
  print('Yes')
else:
  print('No')
a = list(map(int, input().split()))
n = int(input())

while 1:
  if n == 0:
    print("No")
    break
  n -= 1
  if a[0] >= a[1]:
    a[1] *= 2
  elif a[1] >= a[2]:
    a[2] *= 2
  if a[0] < a[1] < a[2]:
    print("Yse")
    break
rgb = list(map(int, input().split(' ')))
r = rgb[0]
g = rgb[1]
b = rgb[2]
k = int(input())

for i in range(k):
    if(r >= g):
        g = g * g
    elif(g >= b):
        b = b * b

if (r < g < b):
    print('Yes')
else:
    print('No')
# -*- coding: utf-8 -*-
"""
Created on Sat Jul 25 21:02:29 2020

@author: NEC-PCuser
"""

A, B, C = map(int, input().split())
K = int(input())

for i in range(K):
    if (C < B):
        C *= 2
    elif B < A:
        B *= 2

if (A < B and B < C):
    print("Yes")
else:
    print("No")
a,b,c = list(map(int,input().split()))
K = int(input())

while True :
    if a > b:
        b *= 2
        K -= 1
    if a < b:
        break
    if K == 0:
        print('No')
        exit()
    

while True:
    if b > c:
        c *= 2
        K -= 1
    if b < c:
        print("Yes")
        break
    if K == 0:
        print('No')
        exit()