peterverebics/CodeNet_Python_118 huggingface dataset:
A, B, C = [int(n) for n in input().split()]
K = int(input())
a = (A+B-1)//B
b = (A+C-1)//C
print('Yes' if (a+b)//2<=K and A<=B*a<=C*b else 'No')
a,b,c = map(int, input().split())
k = int(input())

ans = False

for _ in range(k):

    if c>b>a:
        ans = True
        break

    if a > c:
        c *= 2
        continue

    if c < b:
        if b < a:
            b *= 2
        else:
            c *= 2
    else:
        b *= 2

if c>b>a:
    ans = True

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

for i in range(0, K):

    if num[1] > num[2]:
        num[2] = num[2] * 2

    elif num[0] > num[1]:
        num[1] = num[1] * 2

    elif num[0] > num[2]:
        num[2] = num[2] * 2

    else:
        num[2] = num[2] * 2

if num[2] > num[1] > num[0]:
    print("Yes")
else:
    print("No")
A, B, C = list(map(int, input().split(' ')))
K = int(input())
cnt = 0
flg = 0
while cnt < K:

  if B <= A:
    if B <= 7:
      B *= 2
  elif C <= B:
    if C <= 7:
      C *= 2
  cnt += 1

  if A < B < C:
    flg = 1
    break

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

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

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

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

    if (C>B):
        break
    else:
        C=C*2
        continue
        
if (A<B) and (B<C):
    print("Yes")
else:
    print("No")
import math
A, B, C = list(map(int, input().split()))
K = int(input())
#A, B, C = [7, 2, 5]
#K = 3

i = math.ceil(math.log2((A+1)/B))
K -= i
B = B * (2 ** i)
j = math.ceil(math.log2((B+1)/C))
K -= j
C = C * (2 ** j)
if K >= 0:
    print("Yes")
else:
    print("No")
a, b, c = map(int, input().split())

k = int(input())

m = 0
n = 1

while a > b:
    m = m + 1
    b = b * 2
    if a < b:
        break

while b > c:
    n = n + 1
    c = c * 2
    if b < c:
        break



if m + n <= k:
    print('Yes')

elif m + n > k:
    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

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

K = int(input())

flag = False

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

            if x < y < z:
                flag = True


if flag == True:
    print('Yes')
else:
    print('No')
a,b,c=map(int,input().split())
k=int(input())
if a>=b:
  d=(a/b)//2+1
  b=b*(2**d)
else:
  d=0
if b>=c:
  e=(b/c)//2+1
else:
  e=0
if k>=d+e:
  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:
    flag = 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())
if A<B<C:
  print("Yes")
for i in range(K):
  if A > B:
    B = B*2
  else:
    C = C*2
  if A<B<C:
    print("Yes")
    exit()
print("No")
A, B, C = map(int, input().split())
K = int(input())

for k in range(K):
  if A < B < C:
    print("Yes")
    exit()
  if A > B:
    B *= 2
  elif B > C:
    C *= 2
    
if A < B < C:
  print("Yes")
  exit()
print("No")
cards = list(map(int,input().split()))
K = int(input())
count=0
while count<K:
    if cards[1]>cards[2]:
        cards[2]*=2
        count+=1
    elif cards[0]>cards[1]:
        cards[1]*=2
        count+=1
    else:
        cards[0]*=2
        count+=1
    print(cards)

if cards[0]<cards[1]<cards[2]:
    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

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

if a < b < c:
    print('Yes')
else:
    print('No')
A,B,C = map(int, input().split())
K = int(input())
count = 0
for x in range(K):
    B = B * 2
    count = count + 1
    if B > A:
        break
for y in range(K-count):
    C=C*2
    if C>B:
        break
if C>B>A:
    print("Yes")
else:
    print("No")
import sys, math, itertools, collections, bisect 
input = lambda: sys.stdin.buffer.readline().rstrip().decode('utf-8') 
inf = float('inf') ;mod = 10**9+7 
mans = inf ;ans = 0 ;count = 0 ;pro = 1

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 and b < c:
    print("Yes")
else:
    print("No")
A, B, C=map(int,input().split())
K=int(input())
ab=int(A/B)
x=int(len(bin(ab))-2)
B1=B*(2**x)
bc=int(B1/C)
y=int(len(bin(bc))-2)
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 b < a:
        b*=2
    else:
        c*=2
if c>b>a:
    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

        
if flag == False:
    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

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

x = 0
while b >= c:
    b //= 2
    x += 1
while a >= b:
    a //= 2
    x += 1
if x <= k:
    print('Yes')
else:
    print('No')
import sys
A, B, C = map(int,input().split())
k = int(input())
count=0
for i in range(k):
    if A>=B:
        count+=1
        B=B*2
    if count>k:
        print('No')
        sys.exit()

for i in range(k):
    if B>=C:
        count+=1
        C=C*2
    if count>k:
        print('No')
        sys.exit()

print('Yes')
R,G,B = map(int,input().split())
K = int(input())

for i in range(K):
    if G < R:
        G *= 2
    elif B < G:
        B *= 2
    print('Green: ' + str(G) + ' blue:' + str(B))


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

ans = "No"
for a in range(K):
  for b in range(K):
    for c in range(K):
      if a+b+c<=K and (A<<a)<(B<<b)<(C<<c):
        ans = "Yes"
print(ans)
a = list(map(int,input().split()))
#b = list(map(int,input().split()))
b=int(input())

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

i = math.floor(A/(B+1))
K -= i
B = B * (2 ** i)
j = math.floor(B/(C+1))
K -= j
C = C * (2 ** j)
if K >= 0:
    print("Yes")
else:
    print("No")
a,b,c=[int(i) for i in input().split()]
n=int(input())
flag=0
e=0
while(a>=b):
    b=b*2
    e=e+1
while(e<n and c<=b):
    c=c*2
    e=e+1
if(b>a and c>b and e<=n):
    print('YES')
else:
    print('NO')
A, B, C = map(int, input().split())
K = int(input())

# 魔術成功
# A 赤
# B 緑
# C 青
# a < b < c になれば成功


def magic(cards: list, k: int):
    if k == 0:
        if cards[0] < cards[1] < cards[2]:
            return 'Yes'
        else:
            return 'No'

    cards[cards.index(min(cards))] *= 2
    k -= 1

    return magic(cards, k)


print(magic([A, B, C], K))
a,b,c=map(int,input().split())
k=int(input())

ans=0
m2=a
if m2>b:
    for i in range(1,4):
        b=b*2
        ans+=1
        if b>m2:
            break
m=max(a,b)
if m>=c:
    for i in range(1,4):
        c=c*2
        ans += 1
        if c>m:
            break
if ans<=k:
    print("Yes")
else:
    print("No")
li = input().split()
a=int(input())
magic = 0
for i in range(0,8):
    if li[0] >= li[1]:
        li[1] = li[1] * 2
        magic = magic + 1

for i in range(0,8):
    if li[1] >= li[2]:
        li[2] = li[2] * 2
        magic = magic + 1
        
if a >= magic:
    print("Yes")
else:
    print("No")
cards = list(map(int,input().split()))
K = int(input())
for i in range(K):
    if cards[1]<=cards[0]:
        cards[2]*=2
        continue
    if cards[2]<=cards[1]:
        cards[1]*=2
        continue
    else:
        break
    

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

for i in range(K):
    for j in range(K):
        if C**(K-i-j) > B**j > A**i:
            print("Yes")
            sys.exit()
        else: continue
print("No")
a,b,c=map(int,input().split())
k=int(input())
if c>b and b>a:
    print("Yes")
else:
    m=max(a,b)
    if c<=m:
        while(c<=m and k>0):
            c=c*2
            k-=1
    if b<=a:
        while(b<=a and k>0 and 2*b<c):
            b=b*2
            k-=1
  #  print(a,b,c)
    if c>b and b>a:
        print("Yes")
    else:
        print("No")
abc = input('')
a = int(abc.split()[0])
b = int(abc.split()[1])
c = int(abc.split()[2])
k = int(input(''))

result = False
for i in range(k):
    if a>b:
        b*=2
    elif b>c:
        c*=2
#    print('{}/{}/{}'.format(a,b,c))
    if a<b and b < c:
        result = True
        break

if result:
    print('Yes')
else:
    print('No')
def main():
    a,b,c=map(int,input().split())
    k=int(input())
    cnt=0
    while cnt < k:
        cnt+=1
        if a > b: b*=2
        elif b > c: c*=2
        else: 
            break
    if a < b and b < c: print('Yes')
    else: print('No')
    return

if __name__=='__main__':
    main()
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())
ans=0
for i in range(0,K+1):
    for j in range(0,K+1-i):
        for k in range((K-i-j),K+1-i-j):
            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())
for k in range(K):
    if A < B < C:
        break
    elif 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())
N = K
STOP1 = False
STOP2 = False
for i in range(K):
    if B < A and N>0:
        N-=1
        B*=2
    if B >=A:
        break
for i in range(N):
    if C < B:
        C*=2
if B>=A and C>=B:
    print("Yes")
else:
    print("No")
import sys
input = lambda : sys.stdin.readline().rstrip()

r, g, b = map(int, input().split(" "))
k = int(input())

for i in range(k):
    if g <= b:
        g *= 2
    elif b <= g:
        b *= 2
if b > g > r:
    print("Yes")
else:
    print("No")
a,b,c =map(int,input().split())
p=int(input())
 
cnt=0
 
for i in range(1,p+1):
    for j in range(1,p+1):
        for k in range(1,p+1):
            if i+j+k==p+3 and a*2**(i-1) < b*2**(j-1) and b*2**(j-1) < c*2**(k-1):
                cnt+=1
 
if cnt >0:
    print('Yes')
else:
    print('No')
def resolve():
    a, b, c = map(int, input().split())
    k = int(input())
    for _ in range(k):
        if b < a:
            b *= 2
        if b > a and c < b:
            c *= 2
    if a < b < c:
        print("Yes")
    else:
        print("No")
resolve()
A, B, C = list(map(int, input().split(' ')))
K = int(input())
cnt = 0
while cnt < K:

  if B <= A:
    if B <= 7:
      B *= 2
  elif C <= B:
    if C <= 7:
      C *= 2
  cnt += 1

if A < B < C:
  print("Yes")
else:
  print("No")
red, green, blue = map(int, input().split())

K = int(input())

# blue >　green > red

for i in range(K):
    if green < red:
        green *= 2
        continue
    if blue < green:
        blue *= 2

if blue > green > red:
    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<A):
    E = E*2
    i2 +=1
if K >= i1+i2+1:
    print("Yes")
else:
    print("No") 
print(i1)
print(i2)
print(D)
print(E)
A,B,C=(input().split())
K= int(input())
A = int(A)
B = int(B)
C = int(C)
for i in range(K):
    if C < B:
        C = C*2
    elif 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 a > b and k > 0:
    b *= 2
    k -= 1
    

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

if a < b < c:
    print("Yes")
else:
    print("No")
import sys


def resolve(in_):
    a, b, c = map(int, next(in_).split())
    k = int(next(in_))
    for _ in range(7):
        if a >= b:
            b * 2
        elif b >= c:
            c * 2
        else:
            break
    return 'Yes' if a < b and b < c else 'No'


def main():
    answer = resolve(sys.stdin.buffer)
    print(answer)


if __name__ == '__main__':
    main()
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 <=3:
    print("YES")
else:
    print("NO")
a, b, c = input().split()
k = int(input())
a = int(a)
b = int(b)
c = int(c)

for i in range(1, k):
    if (b <= a):
        b *= 2
    elif (c <= b):
        c *= 2
    i += 1
if (c > b and b > a):
    print("No")
else:
    print("Yes")
import sys
input = sys.stdin.readline

'''

'''

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

def solve(k, tup):
    a, b, c = tup
    while k:
        if a >= b:
            b *= 2
            k -= 1
            continue
        if b >= c:
            c *= 2
            k -= 1
            continue
    
    if a < b < c:
        return "YES"
    else:
        return "NO"


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

d=2**k

if d*b>a:
    print('Yes')
elif d*c > b:
    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 a < b < c:
    print('Yes')
else:
    print('No')
A,B,C = map(int,input().split())
K = int(input())

for i in range(K):
    tmp = min(B,C)
    if(B==tmp):
        B *= 2
    else:
        C *= 2
    # print(A,B,C)
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
while A<B:
  B*=2
while B<C:
  C*=2
B//=D
C//=E
X=B+C
while X%2==0:
  X//=2
if X>K:
  print("No")
else:
  print("Yes")
A, B, C = map(int, input().split())
K = int(input())
 
if (B*(2**K-1) < A or C*(2**K-1) < A):
  print("No")
else:
  print("Yes")
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 = input().split()
K = int(input())
for i in range(len(A)):
  A[i] = int(A[i])

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

is_Ok = False
for i in range(k) :
    # print(k,a,b,c)
    if (a > b) :
        b *= 2
        continue

    if (b > c) :
        c *= 2
        continue

    if (a<b and b<c) :
        is_Ok = True
        break

if (a<b and b<c) :
    is_Ok = True

if (is_Ok) :
    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:
      b = b*2
    else:
      c = c*2
if a < b and b < c:
  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 l[0])
  b = (l[1] * 2 * i.count(1) if i.count(1) else l[1])
  c = (l[2] * 2 * i.count(2) if i.count(2) else l[2])
  if a<b<c:
    f = True

if f == False:
  print("No")
else:
  print("Yes")
# -*- coding: utf-8 -*-
# モジュールのインポート
import math

# 標準入力を取得
A, B, C = list(map(int, input().split()))
K = int(input())

# 求解処理
ans = str()
k_b = math.ceil(math.log(A / B) / math.log(2))
if k_b > K:
    ans = "No"
else:
    if 2**(K - k_b) * C > 2**k_b * B:
        ans = "Yes"
    else:
        ans = "No"

# 結果出力
print(ans)
a, b, c = map(int, input().split())
k = int(input())
cnt = 0
while True:
    cnt += 1    
    if cnt > k: 
        print("No")
        break
    b_val = b * (2 ** cnt)
    c_val = c * (2 ** (k - cnt))
    if a < b_val < c_val: 
        print("Yes")
        break
li = list(map(int, input().split()))
k = int(input())

for i in range(k):

    if li[0] > li[1]:
        li[1]=li[1]*2
    elif li[2] < li[1]:
        li[2]=li[2]*2
    if li[0] < li[1] and li[1] < li[2]:
        print("Yes")
        quit()
print("No")
A,B,C = map(int,input().split())
K = int(input())
x = 0
if A > B:
    x += len(str(bin(A//B)))-2
    B *= 2**x
if B > C:
    x += len(str(bin(B//C)))-2
#print(x)
if x <= K:
    print('Yes')
if x > K:
    print('No')
import sys

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

cnt = 0
for _ in range(k):
    if a >= b:
        b *= 2
        cnt += 1
    if a < b:
        continue

if k-cnt == 0:
    sys.exit()

for _ in range(k-cnt):
        if b >= c:
            c *= 2

if a < b < c:
    print('Yes')
else:
    print('No')
import math
A,B,C=(int(x) for x in input().split())
k=int(input())
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')
a, b, c = map(int, input().split())
k = int(input())
i = 0

if k > 1:
  for t in range(1, k):
    if a<b*2*t and b*2*t<c*2*(k-t):
      i += 1
    else:
      i += 0
    t += 1
elif k == 1:
  if a<b*2 and b*2<c:
    i = 1
  elif a<b and b<c*2:
    i = 1
  else:
    i = 0
  
if i > 0:
  print('Yes')
elif i == 0:
  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
    if a < b and b < c:
        print('Yes')
    else:
        print('No')

main()
R,G,B=map(int,input().split())
K=int(input())
#print(R,G,B,K)

for i in range(K):
  if(B<G):
    B*=2
  if(G<R):
    G*=2
#print(R,G,B,K)
if(R<G and G<B):
  print('Yes')
else:
  print('No')
A,B,C = map(int,input().split())
K = int(input())
count = 0

while count < K:
    if C < B:
        C = C * 2
        count += 1
    elif B < A:
        B = B * 2
        count += 1
    else:
        count += 1

if C > B and B > A:
    print("Yes")
else:
    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 2*x + y <= K:
    print("Yes")
else:
    print("No")
R,G,B=map(int,input().split())
K = int(input())
i = 1
while i <= K:
    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())
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")
A,B,C=map(int,input().split())
K=int(input())

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

for i in range(0,k+1):
  b1=b*2*i
  g2=g*2*(k-i+1)
 
  if r<g2 and g2<b1:
    print("Yes")
    exit()
    
for i in range(0,k+1):
  b1=b*2*(k-i+1)
  g2=g*2*i

  if r<g2 and g2<b1:
    print("Yes")
    exit()
    
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())
j = K
for i in range(K):
    if b-a>0:
        break
    b *=2
    if b-a>0:
        j = K-(i+1)
        break
if b-a<=0:
    print('No')
    exit()
if j==0:
    if c-b >0:
        print('Yes')
        exit()
if c*2*j-b >0:
    print('Yes')
else:
    print('No')
import math
A,B,C=(int(x) for x in input().split())
k=int(input())
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 g<=k:
    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')
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, b, c = map(int, input().split())#赤midoriao
k = int(input())
#赤＜緑＜青
if a < b and b<c:
  print("Yes")
else:
  while k > 0:
    if a >= b:
      b = b*2
      k-=1
    if b >= c and k>0:
      c = 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<(b**i)**2<(c**(k-i))**2:
        flag = True
        
if flag == True:
    print('Yes')
else:
    print('No')
a,b,c = map(int,input().split())
k = int(input())
ans = "No"
for i in range(k):
    if a>=b:
        b*=2
    elif c>=b:
        c*=2
if b>a and c>b:
    ans = "Yes"
print(ans)
A,B,C=map(int,input().split())
K=int(input())

for a 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:
        b = b*2
    elif b > c:
        c = c*2
print(a,b,c)
if a < b and b < c:
    print("Yes")
else:
    print("No")
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")
b , g , r = map(int,input().split())

c = int(input())

flag = 'No' 

for i in range(c):
    if r < g or r < b:
        r = r *2
    
    elif g < b:
        g = g *2
    
    if r > g > b:
        flag = 'YES'
        break
    
print(flag)
R,G,B = map(int,input().split())
K = int(input())

for i in range(K):
    if G < R:
        G *= 2
    elif B < G:
        B *= 2
    # print('Green: ' + str(G) + ' blue:' + str(B))


if R < G and G < B:
    print('Yes')
else:
    print('No')