peterverebics/CodeNet_Python_118 huggingface dataset:
A, B, C = map(int, input().split())
K = int(input())

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


def magic(cards: list, k: int):
    a, b, c = cards

    if a < b < c:
        return 'Yes'

    if k == 0:
        if a < b < c:
            return 'Yes'
        else:
            return 'No'

    cards[cards.index(min(cards))] *= 2

    return magic(cards, k - 1)


print(magic([A, B, C], K))
i = list(map(int, input().split()))
K = int(input())
red=i[0]
red_double=i[0]*2
green=i[1]
green_double=i[1]*2
blue=i[2]
blue_double=i[2]*2
success=0

for num in range(K):
  if blue < green:
    blue = blue_double
    blue_double = blue_double*2
  elif green < red:
    green = green_double
    green_double = green_double*2
  else:
    blue = blue_double
    blue_double = blue_double*2

    
if (blue > green and  green > red):
  success=1

if success == 1:
  print("Yes")
else:
  print("No")
A,B,C = map(int,input().split())
K = int(input())
for i in range(0,K+1):
    A = A*(2*i)
    for j in range(0,K+1):
        B = B*(2*j)
        for h in range(0,K+1):
            C = C*(2*h)
            if (i+j+h) <= K and C>B>A:
                print("Yes")
                exit()
print("No")
"""
b > g > r

"""

r, g, b = list(map(int, input().split()))
k = int(input())
flag = False
for i in range(k):
    if r > b and g > b:
        b *= 2
    elif r > g:
        g *= 2
    if b > g > r:
        flag = True

print("Yes") if flag else print("No")
A,B,C = list(map(int,input().split()))
K = int(input())
flag= 0
for i in range(K):
    if A>B:
        B *=2
    if C < B:
        C *=2
    if C >B and B>A:
        flag = 1
        break
if flag == 0:
    print("No")
else:
    print("Yes")
R,G,B=map(int,input().split())
K=int(input())


for i in range (K):
    if R > G :
        G*=2
        continue
    else:
        pass

    if G > B :
        B*=2
        continue
    else:
        pass
    
if R < G <B:
    print('Yes')
else:
    print('No')
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")
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')
    else :
        print('No')
a,b,c=map(int,input().split())
k=int(input())

token=0
for i in range(k+1):
    c_c=c*(2**i)
    for j in range(k-i+1):
        b_c=c*(2**j)
        if a<b_c and b_c < c_c:
            token=1

if token : print("Yes")
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)
  if r<g2 and g2<b1:
    print("Yes")
    exit()
    
for i in range(0,k+1):
  b1=b*2*(k-i)
  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:
    if A >= B:
        B *= 2
        K -= 1

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

    if A < B < C:
        break

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

import math
b=0

if B>A:
	b=0
elif 2*B>A:
	b=1
	B=2*B
elif 4*B>A:
	b=2
	B=4*B
else:
	b=3
	B=8*B

c=0
if C>B:
	c=0
elif 2*C>B:
	c=1
elif 4*C>B:
	c=2
else:
	c=3


if b+c<=K:
	print("Yes")
else:
	print("No")



# 2darray [[0] * 4 for i in range(3)]
def main():
	a,b,c = map(int,input().split())
	k = int(input())
	judge = True
	counter = 0
	while judge:
		if a < b < c:
			print("Yes")
			break
		else:
			counter += 1
		
		if counter <= k:
			if a > b:
				b *= 2
			elif b > c:
				c *= 2
		else:
			print("No")
			break

			

if __name__ == '__main__':
	main()
A, B, C = map(int, input().split())
K = int(input())

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

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
    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 a>=b:
        b*=2
    elif b>=c:
        c*=2
    else:
        break
    k-=1
if a<b and b<c:
    print("YES")
else:
    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")
#!/usr/bin/env python3

def main():
    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')


if __name__ == "__main__":
    main()
a,b,c = map(int,input().split())
k = int(input())
d = 0
for i in range(k+1):
    if b < a:
        b *= 2
    elif c < b:
        c *= 2
    else:
        d = 1
if d == 0:
    print("No")
else:
    print("Yes")
a,b,c = map(int,input().split())
k = int(input())
ans = 0

while a > b:
    b = b*2
    ans += 1

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

if ans > k:
    print("No")
else:
    print("Yes")
A, B, C = map(int, input().split())
K = int(input())
for i in range(K):
    for j in range(K):
        for k in range(K):
            if i + j + k <= K:
                D = A * 2 ** i
                E = B * 2 ** j
                F = C * 2 ** k
                if D < E < F:
                    print('Yes')
                    exit()
print('No')
A, B, C = map(int, input().split())
K = int(input())
i = 0
while i <= K:
  if A >= B:
    B *= 2
    i += 1
  else:
    break
while i <= K:
  if B >= C:
    C *= 2
    i += 1
  else:
    break
#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())
for i in range(1,K+1):
    if A > B :
        B = B*2
    if B > C :
        C = C*2

if C > B & B > A:
    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:
      	c = c*2
      else:
        b = b*2
    else:
      c = c*2
if a < b and b < c:
  print('Yes')
else:
  print('No')
card = list(map(int, input().split()))
k = int(input())

for i in range(k):
    if card[0] > card[1]:
        card[1] *= 2
    elif card[1] > card[2]:
        card[2] *= 2
    else:
        card[2] *= 2

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

while(k > 0):
    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()

    k -= 1

print('No')
import sys
import numpy as np

A,B,C = list(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())

flag = False

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

            if x < y and y < z and i + j + k <= K:
                flag = True


if flag == True:
    print('Yes')
else:
    print('No')
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):
            a=1
if a==1:
    print('Yes')
if a==0:
    print('No')
a, b, c = map(int, input().split())
k = int(input())

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

if a < b < c:
    print('Yes')
else:
    print('No')
r, g, b = map(int, input().split())
op = int(input())
while op > 0 and g < r:
    g *= 2
    op -= 1
while op > 0 and b < g:
    b *= 2
    op -=1
# print(r,g,b)
if r < g < b:
    print("Yes")
else:
    print("No")
a,b,c=map(int,input().split())
k=int(input())

ans=False
for i in range(0,k+1):
    for j in range(0,k+1):
        if(i+j>k):
            continue
        if(a*2**i<b*2**j and b*2**j < c*2**(k-i-j)):
            print(i,j,k-i-j)
            ans=True

if(ans):
    print("Yes")
else:
    print("No")
list=input().split()
num=int(input())
A,B,C=int(list[0]),int(list[1]),int(list[2])
if B*2**num<A or C*2**num<B:
  print('No')

pattern=[[i,num-i] for i in range(num+1)]
temB=B
temC=C
a=0
for pt in pattern:
  B=B*(2**pt[0])
  C=C*(2**pt[1])
  
  
  if A<B<C:
    print('Yes')
    a=1
    break
   
  B=temB
  C=temC

if a!=1:
  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 < c:
	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
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')
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[0] > l[1]:
        l[1] *= 2
        check(l)
        continue
    elif l[1] > l[2]:
        l[2] *= 2
        check(l)
        continue

print('No')

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

for i in range(k):

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

    if b > a and c > b:
        break

if b > a and c > b:
    print('Yes')
else:
    print('No')
A, B, C = map(int, input().split(" "))
N = int(input())
newA, newB, newC = A, B, C
n = 0
for a in range(N):
    for b in range(N):
        for c in range(N):
            if newA < newB and newB < newC:
                n = 1
            else:
                newC *= 2
                
        newB *= 2
        newC = C
    newA *= 2
    newC = C
    newB = B
if n == 1:
    print("Yes")
else:
    print("No")
R,G,B=map(int,input().split())
K = int(input())
i = 1
while (B<=G or G<=R):
    if R>=G:
        G = G*2
        i=i+1
    if G>=B:
        B = B*2
        i=i+1
    if i>=K:
        break
if R<G and G<B:
    print("Yes")
else:
    print('No')
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
    print(A, B, C)
    continue
  elif B < A:
    B *= 2
    print(A, B, C)
    continue

if A < B < C:
	print("Yes")
	exit()
else:
  print("No")
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 and 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(0)

if b*(2**(k-count))>g:
    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*2**(i+1)< c*2**(j+1):
            print("Yes")
            asw=True
            # print(i,j,k)
            break
    if (asw):break
else : print("No")
def main():
    a,b,c = list(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")
    else:  
        print("No")
   
if __name__ == "__main__":
    main()
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*(2**i)
    Y = C*(2**j)
    if  i+j <= 3 and A < X and X < Y:
      count +=1
      print(A,X,Y)
if count ==0:
  print('No')
else:
  print('Yes')
def countup(a, b):
    count = 0
    if a < b:
        return count
    else:
        while a > b:
            b *= 2
            count += 1
        return count


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

count = countup(A, B)
B_ = B * (2 ** count)
count += countup(B_, C)


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

numbers=[A,B,C]

for k in range(K):
    a=numbers[0]
    b=numbers[1]
    c=numbers[2]
    if c<a or c<b:
        c*=2
        numbers[2]=c
    elif b < a:
        b*=2
        numbers[1]=b

if numbers[0]< numbers[1] and numbers[1]<numbers[2]:
    print('Yes')
else:
    print('No')
a,b,c=(int(x) for x in input().split())
k=int(input())
count=0

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

if count <=k:
  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
  elif max(A,B,C):
    if A > B:
      B *= 2
  if C > B and B > A:
    print("Yes")
    exit()
print("No")
A, B, C = map(int, input().split())
K = int(input())

for i in range(K):
  if A < B < C:
    break
  elif B > C:
    C *= 2
  elif A > B:
    B *= 2
    
if A < B < C:
  print("Yes")
else:
  print("No")
A, B, C = list(map(int,input().split()))
K = int(input())

count = 0

for i in range(K):
   if count > K+1:
      print('No')
      exit()
   elif A > B:
      B *= 2
      count += 1
   else:
      break

for j in range(K - count):
   if count > K+1:
      print('No')
      exit()
   elif B > C:
      C *= 2
      count += 1
   else:
      break

print('Yes')
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()
    
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>2:
    g+=2
elif e==2:
    g+=1

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

    while(c<b and k):
        c=c*2
        k-=1
    if c>b and b>a:
        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

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

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


if A < B and B < C:
    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 and sum2>sum1):
  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
    for p in range(i+1):
        for q in range(i-p):
            for r in range(i-p-q):
                if a**max(p, 1) < b**max(q, 1) < c**max(r, 1):
                    print("Yes")
                    exit()
    print("No")
    return 0

if __name__ == "__main__":
    solve()
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-x):
        for z in range(1,k+1-x-y):
            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=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):
            b=b*2
            k-=1
    if c>b and b>a:
        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
while c>b:
    c*=2
    i==1
if i<=k:
    print('Yes')
else:
    print('No')
a,b,c = map(int,input().split())
k=int(input())

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

if c > b and b > a and c >a:
    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 B>=C:
        count+=1
        C=C*2
    if count>k:
        print('No')
        sys.exit()

print('Yes')
num = input("").split(" ")
num = [int(i) for i in num]
K = int(input(""))

for i in range(0,K):
    if num[0] > num[1]:
        num[1] = num[1] * 2
    elif num[1] > num[2]:
        num[2] = num[2] * 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 = map(int,input().split())
K = int(input())
for i in range(K):
    if B<A:
        B*=2
    elif B>A and C<B:
        C*=2
if B>A and C>=B:
    print("Yes")
else:
    print("No")
#!/usr/bin/env python
# -*- coding: utf-8 -*-


def 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")


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

for i in range(k):
    if a>=b:
        b*=2
        i+=1
    elif b>=c:
        c*=2
        i+=1
    if i==0: break
if a<b and b<c:
    print("Yse")
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")
import sys


def resolve(in_):
    a, b, c = map(int, next(in_).split())
    k = int(next(in_))
    for _ in range(k):
        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())

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

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

if(c > b and b > a):
    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 = count * B
else:
  count = 0
  
if B > C:
  temp = math.log(B/C) / math.log(2)
  temp = math.ceil(temp)
  count += temp
  C = count * C
  
if  C > B and count <= N:
  print("Yes")
else:
  print("No")
a, b, c =input().split()
k = int(input())

a = int(a)
b = int(b)
c = int(c)
l = []

if k == 1:
    if a < 2*b < c or a < b < 2*c:
        l.append('Yes')
    else:
        l.append('No')
else:
    for i in range(1, k+1):
        b = b**(2*i)
        c = c**(2*(k-i))
        if c > b > a:
            l.append('Yes')
            break
        else:
            l.append('No')

d = len(l)
print(l[d-1])
from collections import defaultdict,deque
import math
def gcd(a,b):
    return b if not a%b else gcd(b,a%b)
def lcm(a,b):
    return (a*b)//gcd(a,b)

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

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

    if(c>b and b>a):
        print("Yes")
    else:
        print("No")


if __name__ == '__main__':
    main()
R,G,B=map(int,input().split())
K=int(input())


for _ in range (K) :
    if R > G :
        G*=2
        continue
    else:
        pass

    if G > B :
        B*=2
        continue
    else:
        pass
    
if R < G < 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

if c > b & b > a:
    print('Yes')
else:
    print('No')
A, B, C = map(int, input().split())
K = int(input())
import math
x = int(math.log2(A / B)) + 1
y = int(math.log2(B * 2 ** x / C)) + 1
if x + y <= K:
    ans = 'Yes'
else:
    ans = 'No'
print(ans)
a,b,c=(int(x) for x in input().split())
k=int(input())
ans=0
for i in range(0,k):
  c=c*pow(2,i+1)
  b=b*pow(2,(k-(i+1)))
  if a<b and b<c:
    ans=1
    break

if ans==1:
  print("Yes")
else:
  print("No")
def main():
    A, B, C = (int(x) for x in input().split(" "))
    K = int(input())
    for i in range(K):
        if A < B:
            if B < C:
                print("Yes")
                exit()
            C = 2*C
        else:
            B = 2*B
        print(A, B, C)

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


if __name__ == '__main__':
    main()
A,B, C= list(map(int,input().split()))
K = int(input())

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

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

if (A<B) and (B<C):
	print('Yes')
else:
	print('No')
import numpy as np
A = [int(x) for x in input().split()]
src = np.array(A)
K = int(input())
flag = 0

for i in range(K):
  if(src[0] < src[1]):
    if(src[1] < src[2]):
      flag = 1
      break
    else:
      src[2] *= 2
  else:
    src[1] *= 2
   
if(src[0] < src[1]):
	if(src[1] < src[2]):
		print("yes")
	else:
		print("no")
else:
  print("no")
# -*- coding: utf-8 -*-
import random

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

BOX = [A, B, C]
 
1 <= A,B,C <= 7
#1 <= K <= 7

(random.choice(BOX)*2)*7


if  ( B>A, C>B ):
    print("Yes")
else : 
    print("No")