peterverebics/CodeNet_Python_118 huggingface dataset:
# -*- coding: utf-8 -*-

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

flag = False

#基からA<B<Cのとき
if A<B and B<C:
    print("Yes")
    flag=True

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

        else:
            C *= 2

        if A<B and B<C:
            print("Yes")
            flag=True
            break


if flag == False:
    print("No")
a, b, c = map(int, input().split())
k = int(input())

for cnt in range(k):
    if a < b < c:
        break
    elif a > b:
        b = b * 2
        continue
    elif b > c:
        c = c * 2
        continue

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

flag = 0
for i in range(k):
    if a > b:
        b *=2
        if b > a:
            flag = 1
    
    if flag == 1 and b > c:
        c *= 2

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

for _ in range(k):
    if b < a:
        b = 2 * b
        continue
    if c < b:
        c = 2 * c
        continue
    print('Yes')
print('No')
A,B,C = map(int,input().split())
K = int(input())
import math

x = math.ceil(math.log2(A/B))
if x < 0:
    x = 0
    
y = math.ceil(math.log2((B*(2**x))/C))


if y < 0:
    y = 0

if x + y <= K:
    print("Yes")
else:
    print("No")
A, B, C = map(int, input().split())
K = int(input())
i_ans = 0
j_ans = 0
for i in range(1,8):
    B_after = B * (2 ** i)
    if B_after > A:
        i_ans = i
        break
B_after = B * (2 ** i_ans)
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())
for i in range(0, 3):
  c = c*2
  if b < c:
    b = b*2
  else:
    c = c*2
if a < b and b < c:
  print('Yes')
else:
  print('No')
def main():
    a, b, c = list(map(int, input().split()))
    k = int(input())
    if b == 1 or c == 1:
        print('No')
        return
    count = 0
    while count < k:
        if b <= a:
            b *= 2
            count += 1
        elif c <= b:
            c *= 2
            count += 1
        else:
            break
    if a < b and b < c:
        print('Yes')
    else:
        print('No')

main()
from sys import exit
import math
ii = lambda : int(input())
mi = lambda : map(int,input().split())
li = lambda : list(map(int,input().split()))

a,b,c = mi()
k=ii()

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

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

if a > b:
    for i in range(k):
        b = 2*b
        if a < b:
            count = i
            break
if b > c:
    for j in range(count+1, k):
        c = 2*c
        if b < c:
            break
if a < b and b < c:
        print("Yes")
else:
    print("No")
print(a, b, c)
word = input()
nums = word.split()
numin = [0,0,0]
seiko = 0
for j in range(3):
    numin[j] = int(nums[j])
k = int(input())

for i in range(k+1):
    if numin[0] >= numin[1]:
        numin[1] *= 2
    elif numin[1] >= numin[2]:
        numin[2] *= 2
    else:
        seiko = 1
        print('Yes')

if seiko == 0:
    print('No')
R,G,B=map(int,input().split())
K = int(input())
    
i = 1
while (i <= K and (B<=G or G<=R)):
    if R>=G:
        G = G*2
        i=i+1
    if G>=B:
        B = B*2
        i=i+1
if R<G and G<B and i <=K:
    print("Yes")
    print(R,G,B,i,K)
else:
    print('No')
a,b,c=map(int,input().split())
k=int(input())
for n in range(k):
  if b>c:
    c=c*2
  elif a>b:
    b=b*2
  n=n+1
if b>a and c>b:
  print('Yes')
else:
  print('No')
import math
a, b, c = map(int, input().split())
k = int(input())

a_b = math.ceil(math.log2((a+1)/b))

b = b * 2 ** a_b
b_c = math.ceil(math.log2((b+1)/c))

if a_b + b_c <= k:
  print('Yes')
else:
  print('No')
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:
      if i != k-1:
      	b = b*2
      else: c = c*2
    else:
      c = c*2
if a < b and b < c:
  print('Yes')
else:
  print('No')
a, b, c = map(int, input().split())
k = int(input())
while k > 0 and b >= c:
    c*=2
    k-=1
while k > 0 and a>=b:
    b*=2
    k-=1
print("Yes" if c>=b>=a else "No")
A, B, C = map(int, input().split())
K = int(input())

for _ in range(K):
    if A <= B <= C:
        C *=2
    elif C <= A <= B:
        C *=2
    elif B <= A <= C:
        B *=2
    elif C <= B <= A:
        C *=2
    elif A <= C <= B:
        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(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*i*2+A < B*j*2+B and B*j*2+B < C*k*2+C):
                print('Yes')
                exit()

print('No')
A,B,C = [int(x) for x in input().split()]
K = int(input())
for b in range(1,K+1):
    if A < B * 2**b:
        kb = b
        break
if B * 2**kb < C * 2**(K-kb):
    print("Yes")
else:
    print("No")
a, b, c = map(int, input().split(' '))
k = int(input())

flag=0
for i in range(0, k+1):
  bb = b * (2**i)
  j = k-i
  cc = c * (2**j)
  if (a < bb) and (bb < cc):
    print('Yes')
    flag=1

if flag==0:
  print('No')
[a, b, c] = [int(x) for x in input().split(" ")]
k = int(input())
A,B,C=map(int,input().split())
X=int(input())

while X>0:
  if B<A:
    B=2*B
  elif C<B:
    C=2*C
  X-=1

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 min(a, b, c) == a:
        a *= 2
    elif min(a, b, c) == 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())

for i in range(k):
    if b > a and c > b:
        break

    if b < a:
        b *= 2
        
    elif b > c:
        c *= 2

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

count = 0
while A >= B:
    B *= 2
    count += 1
while B >= C:
    C *= 2
    count += 1
print('Yes' if count <= 3 else 'No')
a,b,c = map(int,input().split())
k = int(input())

cnt = 0
while a >= b:
  b *= 2
  
while b >= c:
  c *= 2
  
if cnt <= k:
  print("Yes")
else:
  print("No")
a, b, c = map(int, input().split())
k = int(input())

ans = "No"
for bi in range(k+1):
    bb = b
    cc = c * (2 ** (k - bi))

    for _ in range(bi):
        bb *= 2
        if a < bb and bb < cc:
            ans = "Yes"

    if ans == "Yes":
        break

print(ans)
from sys import stdin
import sys
import itertools as it

A, B, C = [int(x) for x in stdin.readline().rstrip().split()]
K = int(input())
if C > B and B > A:
    print("Yes")
    sys.exit()
for i in range(K):
    c1 = C*(2**i)
    b1 = B*(2**(K-i))
    if c1 > b1 and b1 > A:
        print("Yes")
        sys.exit()
print("No")
r,g,b=map(int,input().split())
k=int(input())

for i in range(0,k):
  b1=b*2*i
  g1=g*2*(k-i)
  if r<g1 and g1<b1:
    print("Yes")
    exit()
    
for i in range(0,k):
  b2=b*2*(k-i)
  g2=g*2*i
  if r<g2 and g2<b2:
    print("Yes")
    exit()
    
print("No")
from itertools import combinations_with_replacement
from collections import Counter

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


lsts = []
lst = list(map(Counter, combinations_with_replacement([a,b,c], k)))
result = False
if a == b and b == c:
    if k >= 3:
        result = True
if a == b or b == c or c == a:
    if k >= 2:
        result = True
for l in lst:
    al, bl, cl = a*(2**l[a]), b*(2**l[b]), c*(2**l[c])
    if (bl > al) and (cl > bl):
        result = True
if result:
    print('Yes')
else:
    print('No')
A, B, C = map(int, input().split())
K = int(input())
flag = 0

for i in range(K):
  if A > B:
    B = B*2
  elif B > C:
    C = C*2
    if B < C:
      print("Yes")
      break      
  else:
    print("Yes")
    break
  flag += 1

if K == flag:
  print("No")
a,b,c=(int(x) for x in input().split())
k=int(input())

n=0

  
while k<n or b<=a:
    b=b*2
    n=n+1
    
else:
    while k>n or c<=b:
      c=c*2
      n=n+1
      
if c<b<a:
  print('Yes')
else:
  print('No')
import sys

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

for i in range(K):
    if B >= A :
        B *= 2
    else:
        C *= 2
    if B > A :
        print(A , B , C)
        if C > B:
            print("Yes")
            sys.exit()
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
    else:
      c*=2

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

for i in range (k):
    if (b < a ):
        b = b*2
    elif (c<b):
        c =c*2
if (a < b < c ):
    print("Yes")
else:
    print("No")
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 or B>=C) or (A>=B and B>=C):
    print('No')
else:
    print('Yes')
import sys
a, b, c = map(int, input().split())
k = int(input())
while True:
    if b <= a:
        b = b*2
        k += -1
        if k == 0:
            print('No')
            sys.exit()
    else:
        break
while True:
    if c <= b:
        c = c*2
        k += -1
        if k == 0:
            print('No')
            sys.exit()
    else:
        break
print('Yes')
A, B, C = input().split()
A = int(A)
B = int(B)
C = int(C)
K = input()
K = int(K)
z = 0
while B <= A:
    B = B * 2
    z = z + 1
while C <= B:
    C = C * 2
    z = z + 1
if K < z:
    print('NO')
else:
    print('YES')
A,B,C = map(int,input().split())
K = int(input())
N = K
STOP1 = False
STOP2 = False
for i in range(K):
    if B < A and N>0:
        N-=1
        B*=2
for i in range(N):
    if C < B:
        C*=2
if B>A and C>B:
    print("Yes")
else:
    print("No")
A, B, C = map(int, input().split())
K = int(input())


a = 2*A
b = 2*B
c = 2*C

if b>a and c>b:
    print('Yes')
else:
    print('No')
r,g,b=map(int,input().split())
k=int(input())
for i in range(k):
    if r>g:
        g*=2
    elif g>b:
        b*=2
if r<g<b:
    print("Yes")
else:
    print("No")
from itertools import combinations_with_replacement
from collections import Counter

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


lsts = []
lst = list(map(Counter, combinations_with_replacement([a,b,c], k)))
result = False
if a == b and b == c:
    if k >= 3:
        result = True
if a == b or b == c or c == a:
    if k >= 3:
        result = True
for l in lst:
    al, bl, cl = a*(2**l[a]), b*(2**l[b]), c*(2**l[c])
    if (bl > al) and (cl > bl):
        result = True
if result:
    print('Yes')
else:
    print('No')
A, B, C = map(int, input().split())
K = int(input())

for i in range(K):
    if B < A:
        B *= 2
        
    elif C < B:
        C *= 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())

while K > 0:
    if C < B:
        C *= 2
    if B < A:
        B *= 2
    K -= 1
if A < B and B < C and A < C:
    print('yes')
else:
    print('no')
a,b,c = map(int , input().split())
k = int(input())
while(k>=1):
    if c<b:
        c = c*2
    else:
        b = b*2
    k-=1
if (a<b and b<c):
    print ("Yes")
else:
    print("No")
A, B, C = map(int, input().split())
K = int(input())
while A > B and K > 0:
    B *= 2
    K -= 1
while B > C and K > 0:
    C *= 2
    K -= 1
if A < B and B < C:
    print("Yes")
else:
    print("No")
R,G,B=map(int,input().split())
K = int(input())
i = 1
while i <= K and (B<=G or G<=R):
    if R>=G:
        G = G*2
        i+=1
    if G>=B:
        B = B*2
        i+=1
if R<G and G<B:
    print("Yes")
else:
    print('No')
a,b,c=map(int,input().split())
k=int(input())
for n 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')
A,B,C = map(int,input().split())
K = int(input())

while A > B:
    B *= 2
    K -= 1

while B > C:
    C *= 2
    K -= 1

print('Yes' if K >= 0 else 'No')
import random
data = list(map(int, input().split()))
K = int(input())
for i in range(K):
    l = [0, 1, 2]
    num = random.choice(l)
    data[num] = data[num]*2
    if data[1] > data[0] and data[2] > data[1]:
        print("Yes")
        exit()
print("No")
a,b,c=map(int, input().split())
k=int(input())

d=k
for i in range(k):
  if b < a:
    b = b*2
  if b > a:
    d=d-i
    break;

for i in range(d):
  if c < b:
    c = c*2
  if c > b:
    break;
  
if a < b and b < c:
  print('Yes')
else:
  print('No')
a,b,c= list(map(int, input().strip().split()))
N = int(input().strip())
x=0
y=N
for i in range(100):
    b*=2
    x=x+1
    y=y-1
    if b>a:
        break

if y<0:
    if c<=b:
        print("No")
    else:
        print("Yes")
else:
    for i in range(y):
        c*=2
    if c<=b:
        print("No")
    else:
        print("Yes")
a,b,c= list(map(int, input().strip().split()))
N = int(input().strip())
x=0
y=N
for i in range(100):
    b*=2
    x=x+1
    y=y-1
    if b>a:
        break
if  x>=N:
    if c<=b:
        print("No")
    else:
        print("Yes")
    
else:
    for i in range(y):
        c*=2
    if c>b:
        print("Yes")
    else:
        print("No")
def NextIntList(): return list(map(int,input().split()))
def NextInts(): return map(int,input().split())
import itertools
A,B,C = NextInts()
l = ["A","B","C"]
K = int(input())
for v in itertools.combinations_with_replacement(l, K):
    A_number = v.count("A")
    B_number = v.count("B")
    C_number = v.count("C")
    print(A_number)
    if C_number*2+C>B_number*2+B>A_number*2+A:
    	print("Yes")
    	break
else:
	print("Yes")
a, b, c = map(int, input().split())
k = int(input())

cnt = 0
while a>=b:
    b *= 2
    cnt += 1
while b>=c:
    c *= 2
    cnt += 1

if(cnt <= k):
    print("YES")
else:
    print("NO")
A,B,C = list(map(int, input().split()))
K = int(input())
is_true = False
for i in range(K):    
    if B > C:
        C *= 2
    elif A > B:
        B *= 2
#    print(A,B,C)
if A < B < C:
    print("Yes")
else:
    print("No")
#print(is_true)
a, b, c = map(int, input().split())
k = int(input())
n = 0
if a+1 > b:
    i = 1
    while b*(2**i) < a:
        i += 1
    n += i
    #print(n,i)
if a+2 > c:
    i = 1
    while c*(2**i) < a+1:
        i += 1
    n += i
    #print(n,i)

if k >= n:
    print('Yes')
else:
    print('No')
a,b,c = map(int,input().split())
k = int(input())
for i in range(k+1):
    if a < b and b < c:
        print("Yes")
        exit()
    elif b > c:
        c *= 2
    elif a > b:
        b *= 2
print("No")
a,b,c = map(int,input().split())
k = int(input())

for i in range(k):

    if b < a:
        b = b*2
    elif b > c:
        c = c*2

if b > a and c > b:
    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


if(C > B > A):
    print("Yes")
else:
    print("No")
a,b,c=map(int, input().split())
n=int(input()) 
flg = 0

while n > 0:
    if flg == 0:
        b = b * 2
        n = n - 1
        #print(a,b,c)
        if a < b:
            flg = 1
    else:
        c = c * 2
        n = n - 1
        #print(a,b,c)
        if b < c:
            print('Yes')
            exit()

print('No')
l = list(map(int,input().split()))
r, g, b = l[0], l[1], l[2]
k = int(input())

for _ in range(k):
  if r >= g:
    g *= 2
  elif g >= b:
    b *= 2
  else:
    print('Yes')
    break

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

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

if b > a and c > b:
    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(7):
   B = B*2
   cnt = cnt + 1
   if A < B:
    break
if B > C:
  for j in range(7):
   C = C*2
   cnt = cnt + 1
   if B < C:
    break     
if cnt <= K:
  print('YES')
else:
  print('NO')
a, b, c = map(int, input().split())
k = int(input())

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

if (a < b) & (b < c):
    print('Yes')
else:
    print('No')
a,b,c=map(int,input().split())
k=int(input())
re=0
re1=0
for i in range (k):
    re=re+b*2
    if (re > a ):
        re1 = re1 + c*2
        if (re1 > b):
            print("Yes")
            quit()
        else:
            print("NO")
            quit()
from math import sqrt,ceil,gcd
def ii():return int(input())
def si():return input()
def mi():return map(int,input().split())
def li():return list(mi())


# for _ in range(ii()):

a,b,c=mi()
k=ii()
for i in range(k):
    if a>b:
        b*=2
    else:
        c*=2
if a<b<c:
    print("Yes")
else:
    print('No')
def magic(a,b,c,k):
	for i in range(k):
		if(a > c and b > c):
			c*=2
		elif(a > b):
			b*=2
	if(a < b and b < c):
		print("Yes")
	else:
		print("No")
d,e,f = map(int,input().split())
j = int(input())
magic(d,e,f,j)
a,b,c=map(int,input().split())
k=int(input())

if c>b and b>a:
    print('Yes')

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

if b < a:
    y = (a//b)+1
    b = b * y
elif b == a:
    y = 1
    b = b * 2
else:
    y = 0

if c < b:
    x = (b//c)+1
elif c == b:
    x = 1
else:
    x = 0

if b < a:
    y = (a//b)+1
elif b == a:
    y = 1
else:
    y = 0

if (x+y) <= k:
    print('Yes')
else:
    print('No')
A,B,C = map(int,input().split(" "))
K = int(input())
for i in range(K):
    if A > B :
        B = B*2
    else:
        if B > C :
            C = C*2


if C > B & B > A:
    print("Yes")
else:
    print("No")
A, B, C = [int(n) for n in input().split()]
K = int(input())
ans = 'No'
for i in range(1, K):
    B *= 2
    for j in range(1, K):
        C *= 2
        if A<B<C and i+j<=K:
            ans = 'Yes'
            break
print(ans)
abc = input().split()
r = int(abc[0])
g = int(abc[1])
b = int(abc[2])
k = int(input())

while k > 0 and r > g:
    k -= 1
    g *= 2
while k > 0 and g > b:
    k -= 1
    b *= 2
if r < g < b:
    print("Yes")
else:
    print("No")
# -*- coding: utf-8 -*-

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

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

    if A<B and B<C:
        print("Yes")
        flag=True
        break

#基からA<B<Cのとき
if A<B and B<C:
    print("Yes")
    flag=True

if flag == False:
    print("No")
a = list(map(int, input().split()))
n = int(input())

while 1:
  if a[0] >= a[1]:
    a[1] *= 2
  elif a[1] >= a[2]:
    a[2] *= 2
  elif a[0] < a[1] < a[2]:
    print("Yse")
    break
  if n == 0:
    print("No")
    break
  n -= 1
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 g<r:
        g *= 2
    elif b<g:
        b *= 2
    
    if b>g and g>r:
        break

if b>g and g>r:
    print("Yes")
else:
    print("No")
A,B,C = map(int,input().split())
K = int(input())
sum = 0
sum1 = 0
sum2 = 0
for i in range(K):
  if (C):
    sum2+=C*2
  elif(B):
    sum1+=B*2
  elif(A):
    sum+=A*2
if (sum1>sum or sum2>sum1 or (sum1>sum and sum2>sum1)):
  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
        continue
    c *= 2
if a < b and b < c:
    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
    else:
        x += k
    y = 2*(k-x) if k-x > 0 else 1
else:
    y = 0
    y += (k*2)
print(['No','Yes'][b<c*y])
from math import ceil

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

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

if b>a and c>b: print('Yes')
else:print('No')
A,B,C = map(int,input().split())
N = int(input())
stack = [(A,B,C,N)]
flag = False
while stack:
  a,b,c,n = stack.pop()
  if a<b and B<c:
    fag = True
    break
  if n>0:
    stack.append((a*2,b,c,n-1))
    stack.append((a,b*2,c,n-1))
    stack.append((a,b,c*2,n-1))
print('Yes') if flag else print('No')
a,b,c = map(int,input().split())
k = int(input())

while k > 0 and a > b:
    b *= 2
    k -= 1

while k > 0 and b > c:
    c *= 2
    k -= 1

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


for i in range(k):
    if a>c:
        c=c*2
    elif a<c and b>c:
        c=c*2
    elif a<c and b<a:
        b=b*2
    elif c>b and a<b:
        sys.exit()
    
print('Yes')
if a>b or a>c or b>c:
        print('No')
a,b,c=map(int,input().split())
k=int(input())
for i in range(0,k+1):
    asw=False
    for j in range(0,k+1):
        if i+j<=k and a<b*i*2 and b*i*2< c*j*2:
            print("Yes")
            asw=True
            # print(i,j,k)
            break
    if (asw):break
else : print("No")
(b1,g1,r1)=input().split()
(b,g,r)=(int(b1),int(g1),int(r1))
k=int(input())
flg=0
for i in range(k):
  if ( b> g > r):
    flg = 1
    break
  else:
    if not g > r :
      g *= 2
    elif not b > b:
      b *= 2

if flg == 1:
  print ("Yes")
else:
  print ("No")
A, B, C = map(int, input().split())
K = int(input())

def isMoreK(c):
  return c > K

count = 0
while A >= B:
  B *= 2
  count += 1
  while B >= C:
    C *= 2
    count += 1

if isMoreK(count):
  print('No')
else:
  print('Yes')
A,B,C=(input().split())
K = int(input())
A = int(A)
B = int(B)
C = int(C)
for i in range(K):
    print(i)
    if B > C or C == B:
        C = C*2
    elif A > B or B == A:
        B = B*2
if A < B and B < C:
    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
print("Yes" if c>b>a else "No")
A, B, C, K = 2, 4, 3, 4

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

if a<b<c:
    print('Yes')
else:
    print('No')
def resolve():
    a,b,c = map(int, input().split())
    k = int(input())
    doub = b
    target = a
    flg_1 = False
    for _ in range(k):
        if doub > target:
            target = doub #b
            b = target
            doub = c
            flg_1 = True
        doub *= 2
    if flg_1 is True and doub > b:
        print("Yes")
    else:
        print("No")
resolve()
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]
    elif a[1]<=a[0]<=a[2]:
        a[1]=2*a[1]
if a[0]<a[1]<a[2]:
    print("Yes")
else:
    print("No") 
print(a)
a, b, c = map(int, input().split())
k = int(input())

for cnt in range(k):
    if a < b and b < c:
        print(bool(b < c))
        break
    elif a >= b:
        b = int(b * 2)
        print(a, b, c)
        continue
    elif b >= c:
        c = int(c * 2)
        print(a, b, c)
        continue

if a < b < c:
    print('Yes')
else:
    print('No')
a,b,c,k=map(int,open(0).read().split())
while k:k-=1;t=a<b;b*=2-t;c*=1+t
print('YNeos'[b>c::2])