Problem:


Score : 200 points

Problem Statement

Takahashi and Aoki will have a battle using their monsters.

The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively.

The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ...
Here, an attack decreases the opponent's health by the value equal to the attacker's strength.
The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins.

If Takahashi will win, print Yes; if he will lose, print No.

Constraints

1 \leq A,B,C,D \leq 100

All values in input are integers.

Input

Input is given from Standard Input in the following format:

A B C D

Output

If Takahashi will win, print Yes; if he will lose, print No.

Sample Input 1

10 9 10 10

Sample Output 1

No

First, Takahashi's monster attacks Aoki's monster, whose health is now 10-9=1.

Next, Aoki's monster attacks Takahashi's monster, whose health is now 10-10=0.

Takahashi's monster is the first to have 0 or less health, so Takahashi loses.

Sample Input 2

46 4 40 5

Sample Output 2

Yes



Sample input:
10 9 10 10


Sample output:
No

Submission status: Runtime Error

Solution code:
A, B, C, D = map(input())
if 1 <= A <= 100 and 1 <= B <= 100 and 1 <= C <= 100 and 1 <= D <= 100 and C%B >=  A%D :
  print ("Yes")
if 1 <= A <= 100 and 1 <= B <= 100 and 1 <= C <= 100 and 1 <= D <= 100 and C%B < A%D :
  print ("No")

Submission status: Runtime Error

Solution code:
A = int(input())
B = int(input())
C = int(input())
D = int(input())
if 1 <= A <= 100 and 1 <= B <= 100 and 1 <= C <= 100 and 1 <= D <= 100 and C%B >=  A%D :
  print ("Yes")
if 1 <= A <= 100 and 1 <= B <= 100 and 1 <= C <= 100 and 1 <= D <= 100 and C%B < A%D :
  print ("No")

Submission status: Runtime Error

Solution code:
a,b,c,d = map(int, input().split())


n = c // b
m = c % b

if m != 0:

    if a - n * d <= 0 | a - (n-1) * d <= 0:
        print('No')

    else:
        print('Yes')


if m == 0:
    if a - (n-2) * d <= 0 | a - (n-1) * d <= 0:
    print('No')

    else:
    print('Yes')

Submission status: Runtime Error

Solution code:
a, b, c, d = map(int, input().split())

aoki = c
takahashi = a

for i in range(101):
  if takahashi - d > 0: 
    if aoki - b =< 0: #高橋勝ち
      print("Yes")
      break
    else: #戦闘続く
      takahashi = takahashi - d
      aoki = aoki - c
      continue
  else: #高橋負け
    print("No")
    break

Submission status: Runtime Error

Solution code:
import math
A, B, C, D = input().split()
 
if math.ceil(int(C)*1.0/(int(B)*1.0)) >= math.ceil(int(A)*1.0/(int(D)*1.0))
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
N = input().split(" ")
TL = int(N[0])
TA = int(N[1])
AL = int(N[2])
AA = int(N[3])
a = 0

while a = 0:
  AL = AL - TA
  if AL <= 0:
    a = 1
    brake
  TA = TA - AA
  if TA <= 0:
    a = 2
    brake
if a = 1:
  print("Yes")
if a = 2:
  print("No")

Submission status: Runtime Error

Solution code:
A, B, C, D = input().split()

if math.ceil(int(C)*1.0/(int(B)*1.0)) >= math.ceil(int(A)*1.0/(int(D)*1.0))
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
A = int(input())
B = int(input())
C = int(input())
D = int(input())
if 1 <= A <= 1000 and 1 <= B <= 1000 and 1 <= C <= 1000 and 1 <= D <= 1000 and C%B >=  A%D :
  print ("Yes")
if 1 <= A <= 1000 and 1 <= B <= 1000 and 1 <= C <= 1000 and 1 <= D <= 1000 and C%B < A%D :
  print ("No")

Submission status: Runtime Error

Solution code:
a,b,c,d = map(int, input().split())

n = c // b
m = c % b

if m != 0:

    if a - n * d <= 0 | a - (n-1) * d <= 0:
        print('No')

    else:
        print('Yes')


if m == 0:
    if a - (n-2) * d <= 0 | a - (n-1) * d <= 0:
    print('No')

    else:
    print('Yes')

Submission status: Runtime Error

Solution code:
C = X[2]
D = X[3]


n = 0
while C>0:
  C = C-B
  n += 1

m = 0
while A>0:
  A -= D
  m += 1
print(n,m)
if n<=m:
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
from ctypes import c_longlong as ll

A, B, C, D = map(int, input().split())
if (C%B != 0): T = ll(C/B + 1) 
else: T = ll(C/B)
if (A%D != 0): Ao = ll(A/D + 1 )
else: Ao = ll(A/D)

if(T > Ao): print('No')
else: print('Yes')

Submission status: Runtime Error

Solution code:
a=int(input())#takahashi
b=int(input())
c=int(input())#aoki
d=int(input())
flag=True
while flag:
    c-=b
    if(c<=0):
        flag=False
        print("Yes")
        break
        
    a-=d
    if(a<=0):
        falg=False
        print("No")
        break

Submission status: Runtime Error

Solution code:
def win():
  A,B,C,D = map(int,input().split())
  for i in range(1:):
    A = A - D
    B = B - C
  if A<=0:
      return("Yes")
  else:
      return("No")

print(win())

Submission status: Runtime Error

Solution code:
a,b,c,d = map(int,input().split())
for v in range(100):
    if a - v*d < 0:
        ans = "No"
        break
    if c - v*b < 0:
        ans = "Yes"
        break
print(ans)

Submission status: Runtime Error

Solution code:
A = int(input())
B = int(input())
C = int(input())
D = int(input())
E = A + B
F = C + D
if E < F:
    print('No')
else:
    print('Yes')

Submission status: Runtime Error

Solution code:
A, B, C, D = map(int, input().split())



Thit = A
Tatk = B
Ahit = C
Aatk = D
win = False

while :
    Ahit = Ahit - Tatk
    if Ahit <= 0:
        win = True
        break
    Thit = Thit - Aatk
    if Thit <= 0:
        break

if win:
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
A, B, C, D = map(lambda x: int(x), input().split())
while true:
  C -= B
  if C < 1:
    print('Yes')
    break
    A -= D
    if A < 1:
      print('No')

Submission status: Runtime Error

Solution code:
a,b,c,d = map(int,input().split())
while(True):
    c-=b
    if(c<=0):
        print("Yes")
        exit()
    a-=d:
    if(a<=0):
        print("No")
        exit()

Submission status: Runtime Error

Solution code:
a , b , c , d = input().split()
a = int(a)
b = int(b)
c = int(c)
d = int(d)

result = ""
while True :
	c -= b
	if c =< 0 :
		result ="Yse"
        break
		
	a -= d
	if a =< 0 :
		result = "No"
        break
print(result)

Submission status: Runtime Error

Solution code:
A,B,C,D = map(int, input().split())

while True:
    C -= B
    if C<=0:
        print("Yes")
        break
    if C>0:
        A -= D
        if A<=0:
            print("No")
            break
    i += 1

Submission status: Runtime Error

Solution code:
A,B,C,D = map(int, input().split())
#倒せるターン
TakahashiTrun = 0
AokiTurn = 0
if(C % B != 0):
    TakahashiTurn = C // B + 1
else:
    TakahashiTrun = C // B

if(A % D != 0):
    AokiTurn = A // D + 1
else:
    AokiTurn = A // D
    
if(TakahashiTurn - 1 >= AokiTurn):
    print("No")
else:
    print("Yes")

Submission status: Runtime Error

Solution code:
a,b,c,d = map(int,input().split())
r1 = a//d
rem1 = a%d
r2 = c//b
rem2 = c%b
if r1>=r2:
  print('Yes')
 else:
  print('No')

Submission status: Runtime Error

Solution code:
a,b,c,d=map(int,input().split())
flag="F"
while flag="F":
  c=c-b
  if c<=0:
    print("Yes")
    break
  a=a-d
  if a<=0:
    print("No")
    break

Submission status: Runtime Error

Solution code:
list = list(map(int, input().split()))
A = list[0]
B = list[1]
C = list[2]
D = list[3]

while A > 0 and B >0:
    C = C - B
    if C =< 0:break
    A = A - D

if A > 0: print("Yes")
else: print("No")

Submission status: Runtime Error

Solution code:

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

Thit = A
Tatk = B
Ahit = C
Aatk = D
Win = False

while Thit < 0 or Ahit < 0:
    Ahit = Ahit - Tatk
    if Ahit < 0:
        win = True
        break
    Thit = Thit - Aatk
    if Thit < 0:
        break

if win:
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
ok=True
i=0
a,b,c,d=map(int,input().split())
k=c//b
c-=bk
a-=d(k)
if(a<=0 and c!=0):
    print("No")
else:
    print("Yes")

Submission status: Runtime Error

Solution code:
heart_taka, power_taka, heart_aoki, power_aoki = map(int, input().split())

aliveTaka = True
aliveAoki = True
while (aliveTaka) or (aliveAoki):
    heart_aoki -= power_taka
    heart_taka -= power_aoki
    if heart_aoki <= 0:
        aliveAoki = False
    if heart_taka <= 0:
        aliveTaka = False

if aliveAoki == False:
    return "Yes"
return "No"

Submission status: Runtime Error

Solution code:
scanf("%d,%d,%d,%d",&a,&b,&c,&d)
flag = 0

while flag > 0:
  a = a-d:
  if a <= 0:
    flag = 1
    break:
  c = c-b:
  if c <= 0:
    flag = 2
    break:
      
if flag == 1:
  print("Yes")
if flag == 2:
  print("No")

Submission status: Runtime Error

Solution code:
a,b,c,d=map(int,input().spplit())

index=0
for i in range(1000):
	if index==0:
		c=c-b
		if c<=0:
			print("Yes")
			break
		else:
			index=1
	else:
		a=a-d
		if a<=0:
			print("No")
			break
		else:
			index=0

Submission status: Runtime Error

Solution code:
a,b,c,d=map(int,input().split())
if c/b=>a/d or  c//b=a//d:
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
items=list(input().split())
    T_health=int(items[0])
    T_strength=int(items[1])
    A_health=int(items[2])
    A_strength=int(items[3])
    while(T_health>0 and A_health>0):
        A_health-=T_strength
        if(A_health>0):
            T_health-=A_strength
    if(T_health<=0):
        print("No")
    if(A_health<=0):
        print("Yes")

Submission status: Runtime Error

Solution code:
c-b 
a-d 
a,b,c,d = list(map(int,input().split()))
if c%b==0:
  print('Yes')
else:
  print('No')

Submission status: Runtime Error

Solution code:
A,B,C,D = map(int, input().split())
#倒せるターン
TakahashiTrun = 0
AokiTurn = 0
if(C % B != 0):
    TakahashiTurn = C / B + 1
else:
    TakahashiTrun = C / B

if(A % D != 0):
    AokiTurn = A / D + 1
else:
    AokiTurn = A / D
    
if(TakahashiTurn - 1 >= AokiTurn):
    print("No")
else:
    print("Yes")

Submission status: Runtime Error

Solution code:
import math, sys
from bisect import bisect_left, bisect_right
from collections import Counter, defaultdict, deque
from copy import deepcopy
from functools import lru_cache
from heapq import heapify, heappop, heappush
from itertools import accumulate, combinations, permutations
input = sys.stdin.readline
mod = 10**9 + 7
ns = lambda: input().strip()
ni = lambda: int(input().strip())
nm = lambda: map(int, input().split())
nl = lambda: list(map(int, input().split()))

def main():
    a, b, c, d = nm()
    while True:
        c -= d
        if c <= 0:
            print('Yes')
            exit()
        a -= d:
        if a <= 0:
            print('No')
            exit()


if __name__ == '__main__':
    main()

Submission status: Runtime Error

Solution code:
th,ts,ah,ae=map(int,input().split())
while(th>0 && ah>0):
  ah=ah-ts
  if(ah<=0):
    break
  else:
    th=th-ae
if(th>0):
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
k = list(map(int,input().split()))
t = k[0]//k[3]
a = k[2]//k[1]
if t >= k:
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
A,B,C,D=map(int,input())
if(A/D<C/B):
  print('No')
else:
  print('Yes')

Submission status: Runtime Error

Solution code:
a,b,c,d = map(int,input().split())

Takahashi=a/d
Aoki=c/b-1                                                                                                                                                                                                                           if Takahashi>=Aoki:
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
items=list(input.split())
    T_health=int(items[0])
    T_strength=int(items[1])
    A_health=int(items[2])
    A_strength=int(items[3])
    while(T_health>0 and A_health>0):
        A_health-=T_strength
        if(A_health>0):
            T_health-=A_strength
    if(T_health<=0):
        print("No")
    if(A_health<=0):
        print("Yes")

Submission status: Runtime Error

Solution code:
import sys
A,B,C,D = list(map(int,input().split()))

while True:
  C = C - B
  A -= D
  print(C)
  print(A)
  if C <= 0:
    print("Yes")
    sys.exit(1)
  elif A <= 0:
    print("No")
    sys.exit(1)

Submission status: Runtime Error

Solution code:
A, B, C, D = map(int, input().split())
while A > 0 and C > 0:
    C = C - B
    A = A - D
if: A == 0:
    ans = 'No'
else:
    ans = 'Yes'
print(ans)

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
# スペース区切りの整数の入力
S, W = map(int, input().split())
# 文字列の入力
#s = input()
#print(s[0:K-1]+s[K-1].lower()+s[K:N])

if S <= W:
    print("unsafe")
else:
    print("safe")

Submission status: Runtime Error

Solution code:
k = list(map(int,input().split()))
t = k[0] // k[3]
a = k[2] // k[1]
if t >= k:
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
a,b,c,d = map(int,input().split())
while a>0 and c>0:
  c=c-b
  a=a-d
if a=0:
  print("No")
else:
  print("Yes")

Submission status: Runtime Error

Solution code:
import sys

inp=input().split(" ")
thp=int(inp[0])
tat=int(inp[1])
ahp=int(inp[2])
aat=int(inp[3])

for i in range(100);
  ahp-=tat
  if ahp<=0;
    print("Yes")
    sys.exit()
  thp-=aat
  if thp<=0;
    print("Yes")
    sys.exit()

Submission status: Runtime Error

Solution code:
TH,TS,AH,AS = map(int,input().split())
while Ture:
  AH -= TS
  if AH <= 0:
    print('Yes')
    break
  else:
    TH -= AS
    if TH <= 0:
      print('No')
      break

Submission status: Runtime Error

Solution code:
A, B, C, D = map(int, input().split())

t = 0

while True:
  if t = 0:
    C = C - B
    t = 1
    if C <= 0:
      print('Yes')
      break
  else:
    A = A - D
    t = 0
    if A <= 0:
      print('No')
      break

Submission status: Runtime Error

Solution code:
A, B, C, D = map(int, input().split())

while True:
  C -= B

  if (C <= 0):
    print('Yes')
    return
  
  A -= D
  if (A <= 0):
    print('No')
    return

Submission status: Runtime Error

Solution code:
A,B,C,D = map(int,input().split())


for c in range(101):
    if c % 2 ==0:
        C = C-B
        if C <=0:
            ans = 'Yes'
            break
    else:
        A =A-D
        if A <=0:
            ans = 'No'
            break
#     print(A,B,C,D)
print(ans)

Submission status: Runtime Error

Solution code:
a,b,c,d  = map(int,input().split())
for i in range(1,1000):
    if(i%2!=0):
        c -= b
    else:
        a -= d
    
    if(a<=0):
        print("No")
        return
    elif(c<=0):
        print("Yes")
        return

Submission status: Runtime Error

Solution code:
a,b,c,d = map(int, input().split(" "))
while True:
  c -= b
  if c <= 0:
    print("Yes")
    break
  a -= d
  if a <= 0:
    print("No")
  	break

Submission status: Runtime Error

Solution code:
th,ts,ah,as = map(int,input().split())
while Ture:
  ah -= ts
  if ah <= 0:
    print('Yes')
    break
  else:
    th -= as
    if th <= 0:
      print('No')
      break

Submission status: Runtime Error

Solution code:
#スペース区切りの整数の入力
tairyoku_A, kougeki_B,tairyoku_C,kougeki_D = map(int, input().split())

one = int(tairyoku_A /kougeki_D)
two = int(tairyoku_C /kougeki_B)


if(one>two):
  print("Yes")
elif:
  print("No")
else:
  print("Yes")

Submission status: Runtime Error

Solution code:
while A > 0 and C > 0:
    C -= B
    if C <= 0:
        print("Yes")
        exit()
    A -= D
    if A <= 0:
        print("No")
        exit()

Submission status: Runtime Error

Solution code:
s=list(map(int,input().split()))
a=s[0]
b=s[2]
c=0
for i in range():
  if a<=0 or b<=0:
    break
  if c==0:
    b=b-s[1]
    c=1
  else:
    a=a-s[3]
if a<=0:
  print('No')
else:
  print('Yes')

Submission status: Runtime Error

Solution code:
s,w=map(int, input().split())
if w>=s:
  print('unsafe')
else:
  print('safe')