peterverebics/CodeNet_Python_118 huggingface dataset:
A,B,C = map(int, input().split())
K = int(input())
# A: aka < B: midori < C: ao
d = 0
for i in range(K):
    for j in range(K - i):
        for k in range(K - i - j+1):
            a = A*2**i
            b = B*2**j
            c = C*2**k
            if a<b and b<c:
                print("Yes")
                d = 1
                break
if d ==0:
    print("No")
a, b, c = map(int, input().split())
k = int(input())

if a >= c:
  while k >= 1:
    c *= 2
    k -= 1
    if c > a:
      break

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

if c > b > a and k >= 0:
  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
        else:
            break

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

for _ in range(k):
    if l[0] > l[1]:
        l[1] *= 2
    elif l[1] > l[2]:
        l[2] *= 2
    
    if l[0] < l[1] and l[1] < l[2]:
        print('Yes')
        exit()

print('No')
A,B,C = map(int,input().split())
K = int(input())
count =0
for i in range(K+1):
  for j in range(K+1):
    X = B
    Y = C
    X = X*(2**i)
    Y = Y*(2**j)
    if  i+j <= 3 and A < X and X < Y:
      count +=1
      
if count ==0:
  print('No')
else:
  print('Yes')
A,B,C = map(int,input().split())
K = int(input())
if A<B<C:
  print("Yes")
for i in range(K):
  if A >= B:
    B = B*2
  elif B >= C:
    C = C*2
  if A<B<C:
    print("Yes")
    exit()
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:
    a*=2
if a<b and b<c:
  print("Yes")
else:
  print("No")
a, b, c = list(map(int, input().split()))
k = int(input())
while k != 0:
    if b < a:
        b *= 2
    elif c < b:
        c *= 2
    else:
        break
    k -= 1
if (b > a) and (c > b):
    print('Yes')
else:
    print('No')
import math

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

count = 0

if A > B:
  temp = math.log(A/B) / math.log(2)
  temp = math.ceil(temp)
  count += temp
  B = 2**temp * B
else:
  count += 0
  
if B > C:
  temp = math.log(B/C) / math.log(2)
  temp = math.ceil(temp)
  count += temp
  C = 2**temp * C
else:
  count += 0
  
if  C > B and count <= N:
  print("Yes")
else:
  print("No")
import sys
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
    #print(A,B,C)
if A < B < C:
    print('Yes')
else:
    print('No')
def main():
    a, b, c = [int(x) for x in input().split()]
    count = int(input())

    while a >= b:
        b *= 2
        count -= 1
    while b >= c:
        c *= 2
        count -= 1

    print('Yes' if count < 0 else 'No')


if __name__ == '__main__':
    main()
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 A<B and B<C:
    print("Yes")
else:
    print("No")
A, B, C = map(int, input().split())
K = int(input())

while K:
    if A > B:
        B *= 2
    elif B > C:
        C *= 2
    K -= 1

if A < B < C:
    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 a > b:
        b *= 2
    elif b > c:
        c *= 2
print("No")
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 b > c:
        c = 2 * c

    elif a > b:
        b = 2 * b
        # print(a, b, c)

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

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")
Card = list(map(int, input().split()))
K = int(input())

import itertools
import numpy as np
k = [i for i in range(8)]
Com = [v for v in itertools.permutations(k, 3) if np.sum(v) == K]

Ans = []
for c in Com:
  A = [2**c[i] * Card[i] for i in range(3)]
  if (A.index(min(A)) == 0) and (A.index(max(A)) == 2):
    Ans.append(c)

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

for i in range(k):
    print(1)
    if a >= b:
        b = b*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())

for i in range(k):
  while a >= b:
    b *= 2
    i += 1
    while b >= c:
      c *=2
      i += 1

if a<b and b<c:
  print('Yes')
else:
  print('No')
import sys
import math
from collections import deque
a,b,c=map(int,input().split())
k=int(input())
i=0
while b<=a:
    b*=2
    i+=1
    if i>k:
        print('No')
        sys.exit()
while c<+b:
    c*=2
    i==1
    if i>k:
        print('No')
        sys.exit()
if i<=k:
    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
    elif b > c:
        c *= 2
if a < b and b < c:
    print("Yes")
else:
    print("No")
# @uthor : Kaleab Asfaw
import sys

input = sys.stdin.readline

def main(a, b, c, k):
    for i in range(k):
        if b <= a: b*= 2
        elif c <= b: c *= 2
    print(a, b, c)
    if b > a and c > b:
        return "Yes"
    return "No"
    
    


a, b, c = list(map(int, input().split()))
k = int(input())
print(main(a, b, c, k))
A, B, C = (int(x) for x in input().split())
K = int(input())
for i in range(K):
  if 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()) #A赤＜B緑＜C青，
K = int(input())

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

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

if A < B and B < C:
  print("Yes")

else:
  print("No")
a,b,c=map(int,input().split())
k = int(input())
flag = False
for i in range(k+1):
    if a<2*(b**i)<2*(c**(k-i)):
        flag = True
        
if flag == True:
    print('Yes')
else:
    print('No')
a,b,c=map(int,input().split())
d=int(input())
ans=0
for i in range(3):
  if a<b:
    pass
  else:
    b=b*2
    ans=ans+1
for i in range(3):
  if b<c:
    pass
  else:
    c=c*2
    ans=ans+1
if d>=ans:
  print('Yes')
else:
  print('No')
R,G,B = map(int,input().split())
K = int(input())
ans = 'No'

for i in range(K):
    if B > G > R:
        ans = 'Yes'
        break
    elif max(R,G,B) != B:
        B=B*2
    elif G <= R:
        G=G*2
    else:
        pass
#print(R,G,B)
if B > G > R:
        ans = 'Yes'
print(ans)
R,G,B = map(int,input().split())
K = int(input())

if R < G < B:
  print("Yes")
  
for i in range(K):
  if R > G:
    G*=2
  elif G > B:
    B*=2
  elif R > B:
    B*=2
  elif R == G == B:
    B *= 2
  elif R == G:
    G *= 2
  elif G == B:
    B *= 2
  else:
    pass
if R < G < B:
  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 * 2 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()
abc=list(map(int,input().split()))
a,b,c=abc[0],abc[1],abc[2]
k=int(input())
for i in range(k):
    if a < b < c:
        print("Yes")
        break
    elif b <= a < c:
        b *= 2
    else:
        c *= 2
else:
    print("No")
def main():
    A, B, C = map(int, input().split())
    K = int(input())
    n = 0
    for i in range(K):
        if C < B or C < A:
            C = C * 2
            if C > B > A:
                print('Yes')
                return
        elif B < A:
            B = B * 2
            if C > B > A:
                print('Yes')
                return
    print('No')
            
main()
A, B, C = map(int, input().split())
K = int(input())

for i in range(1, K+1):
  if A >= B:
    B *= 2
    print(A,B,C)
  elif B >= C:
    C *= 2
    print(A,B,C)
if A < B < C:
  print("Yes")
else:
  print("No")
a, b, c = map(int, input().split())
k = int(input())
i = 0
while i < k:
    if a >= b:
        b *= 2
    elif b >= c:
        c *= 2
    i += 1
print(a,b,c)
if a < b < c:
    print("Yes")
else:
    print("No")
import math
import collections
import fractions
import itertools
import functools
import operator

def solve():
    a, b, c = map(int, input().split())
    k = int(input())
    i = k+1
    for p in range(i):
        for q in range(i-p):
            for r in range(i-p-q):
                if a**p < b**q < c**r:
                    print("Yes")
                    exit()
    print("No")
    return 0

if __name__ == "__main__":
    solve()
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 a < b and b < c:
        print('Yes')
        break
else:
    print('No')
A,B,C=[int(s) for s in input().split()]
X=int(input())
count=0
while A<=B:
  B*=2
  count+=1
while B<=C:
  C*=2
  count+=1
if count<=X:
  print('Yes')
else:
  print('No')
a, b, c = map(int, input().split())
k = int(input())
if k == 1:
  if b < c:
    b = b*2
  else:
    c = c*2
elif k > 1:
  for i in range(1,k):
    if b < c:
      b = b*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())
count = 0
while a > b:
  b *= 2
  count += 1
while b > c:
  c *= 2
  count += 1
if a < b < c and k-count<= 0:
  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
        if b>c:
            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:
    if C < B:
        C *= 2
        K -= 1
    if B < A:
        B *= 2
        K -= 1
if A < B and B < C and A < 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>b:
        b = b*b
    elif b>c:
        c = c*c
    else:
        continue

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 b > c:
        c *= 2
    elif a > b:
        b *= 2
    elif a > c:
        c *= 2
        
if a < b < c:
    print("Yes")
else:    
    print("No")
a,b,c=map(int,input().split())
k=int(input())
for _ in range(k):
  if a<b<c:
    print('Yes')
    exit()
  if c<a or c<b:
    c=c*2
    continue
  elif c>a and c>b and b<a:
    b=b*2
    continue  
if a<b<c:
  print('Yes')
else:
  print('No')
[r, g, b] = map(int,input().split(' '))
K = int(input())
loop = 1
flag = False

while loop <= K:
  if b <= r or b <= g:
    b*=2
    loop += 1
    continue
  if g <= r:
    g*=2
    loop += 1
    continue
  if r < g < b:
    flag = True
    break
  loop += 1
  
if flag:
  print('Yes')
else:
  print('No')
a, b, c = map(int, input().split())
k = int(input())
if k == 1:
  c = c*2
  if a < b and b < c:
  	print('Yes')
  else:
  	print('No')
elif k > 1:
  for i in range(0, k):
    if b < c:
      b = b*2
    else:
      c = c*2
  if a < b and b < c:
    print('Yes')
  else:
    print('No')
abc = list(map(int, input().split()))
k = int(input())

for i in range(1,k+1):
    min_val = min(abc)
    min_idx = abc.index(min_val)
    abc[min_idx] *= 2

if abc[0] < abc[1] and abc[1] < abc[2]:
    print('Yes')
else:
    print('No')
a,b,c=map(int,input().split())
K=int(input())

isCheck = None
for i in range(K):
    for j in range(K):
        for k in range(K):
            x = a*2**(i)
            y = b*2**(j)
            z = c*2**(k)
            if i+j+k <= K and x < y and y < z:
                isCheck = True

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

for i in range(K):
    if A >= B:
        B = B * 2
        if A < B and B < C:
            print("Yes")
            break
        continue
    elif B >= C:
        C = C * 2
        if A < B and B < C:
            print("Yes")
            break
        continue
else:
    print("No")
# cook your dish here
a,b,c = map(int, input().split())
k = int(input())
flag = 0
while k:
    if a<b and b<c:
        flag = 1
        break
    elif b<a:
        b = b*2
    elif c<b:
        c=c*2
    k=k-1
if flag==1:
    print('Yes')
else:
    print('No')
import math
A,B,C=(int(x) for x in input().split())
k=int(input())
d=2**k
e=math.ceil(A/B)
f=math.ceil(B/C)
y=math.ceil(A/C)
if y>=f:
    z=y
else:
    z=f

g=0
if e<= 3:
    g+=2
elif e<=2:
    g+=1

if z<= 4:
    g+=2
elif z<=2:
    g+=1
if A==B==C:
    g+=3
elif A==B:
    g+=1
elif A==C:
    g+=1
elif B==C:
    g+=1
if g<=k:
    print('Yes')
else:
    print('No')
def solve(A, B, C, K):
    for k in range(0, K+1):
        for n in range(0, k+1):
            if A <= (2**n)*B <= (2**(k-n))*C:
                return True
    return False
A, B, C = map(int,input().split())
K = int(input())
if solve(A, B, C, K):
    print('Yes')
else:
    print('No')
#B
A, B, C = map(int, input().split())
K = int(input())

for _ 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())
K = int(input())

for i in range(K):
  if A < B < C:
    break
  elif A > B:
    B *= 2
  elif B > C:
    C *= 2
  
    
if A < B < C:
  print("Yes")
else:
  print("No")
a,b,c=input().split()
a=int(a)
b=int(b)
c=int(c)
k=int(input())
flag=0
i=1
while(i<=k):
  if((a<b)and(b<c)):
    flag=1
    print("Yes")
    break
  if(a>b):
    b=b*2
    i+=1
    continue
  if(b>c):
    c=c*2
    i+=1
    continue
if((a<b)and(b<c)):
  flag=1
  print("Yes")    
if(flag==0):
  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
if b>a and c>b:
  print('Yes')
else:
  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
 
if b > g and g > r:
  print('Yes')
else:
  print('No')
a, b, c = map(int, input().split())
k = int(input())

i = 0
while not a < b:
    b *= 2
    i += 1
while not b < c:
    c *= 2
    i += 1

if k <= i:
    print('Yes')
else:
    print('No')
A,B,C = map(int, input().split())
K = int(input())

for i in range(K):
  if max(A,B,C) != C:
    C *= 2
  else:
    if A > B:
      B *= 2
if C > B and B > A:
  print("Yes")
else:
  print("No")
a,b,c=map(int,input().split())
k=int(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["b"]:
        d["b"]*=2
    elif d["a"]>d["c"]:
        d["c"]*=2
    elif d["b"]>d["c"]:
        d["c"]*=2
print("No")
l = list(map(int, input().split()))
K = int(input())

def check(nums):
    if nums[0] < nums[1]:
        if nums[1] < nums[2]:
            print('Yes')
            exit(0)

check(l)
for i in range(K):
    if l[1] > l[2]:
        l[2] *= 2
        check(l)
        continue
    elif l[0] > l[1]:
        l[1] *= 2
        check(l)
        continue

print('No')
abc = list(map(int, input().split()))
k = int(input())

for i in range(1,k+1):
    if abc[0] < abc[1] and abc[1] < abc[2]:
        break
    min_val = min(abc)
    min_idx = abc.index(min_val)
    abc[min_idx] *= 2
    

if abc[0] < abc[1] and abc[1] < abc[2]:
    print('Yes')
else:
    print('No')
a = list(map(int,input().split()))
r,g,b= a[0],a[1],a[2]
k=int(input())
m=0
for i in range(k):
    if g>r:
        break
    g*=2
    m+=1
d = k -m
b=b*(2**d)
print(r,g,b,i)
if b>g and g >r:
    print('Yes')
else:
    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*2**(i+1) and b**(i+1)< c*2**(j+1):
            print("Yes")
            asw=True
            # print(i,j,k)
            break
    if (asw):break
else : print("No")
A, B, C = map(int, input().split(" "))
N = int(input())

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


if A < B and 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 and a < c):
		print("Yes")
	else:
		print("No")
d,e,f = map(int,input().split())
j = int(input())
magic(d,e,f,j)
import math
A,B,C=(int(x) for x in input().split())
k=int(input())
d=2**k
e=math.ceil(A/B)
f=math.ceil(B/C)
y=math.ceil(A/C)
if y>=f:
    z=y
else:
    z=f

g=0
if e<= 3:
    g+=2
elif e<=2:
    g+=1

if z<= 4:
    g+=2
elif z<=2:
    g+=1
if A==B==C:
    g+=3
elif A==B:
    g+=1
elif A==C:
    g+=1
elif B==C:
    g+=1
if g<=k:
    print('No')
else:
    print('Yes')
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")
a, b, c = map(int, input().split())
k = int(input())

cnt = 0
while a > b:
  b = b * 2
  cnt += 1
while b > c:
  c = c * 2
  cnt += 1
if cnt <= k:
  print("Yes")
else:
  print("No")
import sys
a, b, c = [int(x) for x in input().split()]
k = int(input())
i = 0
while b<a:
  i += 1
  b *= 2
if(k<i):
  print('No')
  sys.exit()
else:
  k -= i
  j = 0
  while c<=b:
    j += 1
    c *= 2
  if(k<j):  
    print('No')
    sys.exit()
  else:
    print('Yes')
a, b, c = map(int, input().split())
k = int(input())
for i in range(0, k):
  if a < b and b < c:
    a = a*2
  elif b<c and b<a:
    b = b*2
  elif b>c and a>c:
    c = c*2
if a < b and b < c:
  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")
    exit()
print("No")
R, G, B = map(int, input().split())
K = int(input())

for i in range(K + 1):
  g = G * i * 2
  b = B * (K - i) * 2
  r = R
  if b > g > r:
    print('Yes')
    exit()
    
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

if A < B < C:
    print('Yes')
else:
    print('No')
red, green, blue = map(int, input().split())
k = int(input())
success = 0
for cnt in range(k+1):
    if red > green:
        green *= 2
    elif red > blue:
        blue *= 2
    elif green >= blue:
        blue *= 2
    else:
        success = 1
        break
if success == 1:
    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
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')
#!/usr/bin/env python3
def main():
    R, G, B = map(int, input().split())
    K = int(input())

    for i in range(K):
        if R > G:
            G = G * 2
        else:
            if G > B:
                B = B * 2
        if B > G > R:
            print("Yes")
            exit()
    print("No")
if __name__  == '__main__':
    main()
a = list(map(int, input().split()))
n = int(input())

while 1:
  if n == 0:
    print("No")
    break
  elif a[0] >= a[1]:
    a[1] *= 2
    n -= 1
  elif a[1] >= a[2]:
    a[2] *= 2
    n -= 1
  else:
    print("Yse")
    break
a,b,c=map(int,input().split())
k=int(input())
re=0
re1=0
su=0
for i in range (k):
    re=re+b*2
    su = su +1
    if (re > a ):
        quit()
for j in range(k-su):
    re1= re1 + c*2
if (re1 > re):
    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
        else:
            break

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

ans = 'No'
for i in range(K):
  if A > B:
    B = 2 * B
  elif B > C:
    C = 2 * C
  else:
    ans = 'Yes'

if A < B< C: 
  ans = 'Yes'
print(ans)
A,B,C = map(int,input().split())
K = int(input())

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

print("Yes" if A < B and B < C else "No")
a,b,c,k=map(int,open(0).read().split())
for i in' '*k:t=(a<b);b*=2-t;c*=1+t*(b<c)
print('NYoe s'[a<b<c::2])
a,b,c= map(int,input().split())
k=int(input())
if b+c==a:
    print("Yes")
else:
    print("No")
a,b,c = map(int, input().split())
k = int(input())

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

while(k >= 0):
    if l[0] > l[1]:
        l[1] *= 2
        k -= 1
    elif l[1] > l[2]:
        l[2] *= 2
        k -= 1
    else:
        print('Yes')
        exit()

print('No')
A, B, C = map(int,input().split())

K = int(input())

flag = False

for i in range(0, K):
    for j in range(0, K - i):
        for k in range(0, K - i - j):
            x = A * 2**i
            y = B * 2**j
            z = C * 2**k

            if x < y < z:
                flag = True


if flag == True:
    print('Yes')
else:
    print('No')
import math

aka, mi, ao = map(int, input().split(" "))
k = int(input())

for i in range(k):
    if ao > mi:
        mi *= 2
        continue
    if mi > aka:
        aka *= 2
        continue
    ao *= 2

if aka > mi > ao:
    print("Yes")
else:
    print("No")
r, g, b = [int(x) for x in input().split()]
ops = int(input())

m = 0
while m <= ops:
    if max(r, g, b ) != b:
        b *= 2
        m += 1
    else:break
while m < ops:
    if max(r, g) != g :
        g *= 2
        m += 1
    else:
        break
print(r,g,b)
print("Yes" if r < g < b else "No")
a,b,c = map(int,input().split())
k = int(input())
while(b<a and k):
	b*=2
	k-=1
while(c<b and k):
	c*=2
	k-=1
if(a<b and b<c):
	print('Yes')
else:
	print('No')
[A, B, C] = [int(i) for i in input().split()]
K = int(input())

for i in range(1, K+1):
  _B = B * (2 ** i)
  if A < _B:
    for j in range(1, K+1-i):
      _C = C * (2 ** j)
      if _B < _C:
        print('Yes')
        break
    else:
      continue
    break
else:
  print('No')
a,b,c = map(int,input().split())
k = int(input())

cnt = 0
while b >= a:
  b *= 2
  
while c >= b:
  c *= 2
  
if cnt <= k:
  print("Yes")
else:
  print("No")
a,b,c=map(int,input().split())
k=int(input())
cnt=0
while not a<b:
  cnt+=1
  b*=2  
while not b<c:
  cnt+=1
  c*=2  
print('yes' if k>=cnt else '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

    if a<b and b<c:
        print('Yes')
        exit()
print('No')
A,B,C = map(int, input().split())
K = int(input())
new_A = (A*2)**K
new_B = (B*2)**K
new_C = (C*2)**K

if new_C>new_B:
    print('Yes')
elif new_C>new_A:
    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):
    a[a.index(min(a))]= 2*(a[a.index(min(a))])
if a[0]<a[1]<a[2]:
    print("Yes")
else:
    print("No")
A,B,C = map(int,input().split())
K = int(input())
num = 0
for i in range(K):
    if A>B:
        B *= 2
    else:
        num = i
for j in range(K-num):
    C *= 2
if A<B<C:
    print("Yes")
else:
    print("No")