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: Wrong Answer

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

cnt = 0
while (a >= 0 and c >= 0):
    if c % 2 == 0:
        c = c - b
    else:
        a = a - d
    cnt += 1

if c <= 0:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
import sys

input = sys.stdin.readline


def solve():
    t_stamina, t_attack, a_stamina, a_attack = map(int, input().split())
    t_num_attack_to_be_beaten = - (-t_stamina // a_attack)
    a_num_attack_to_be_beaten = - (-a_stamina // t_attack)

    if t_num_attack_to_be_beaten >= a_num_attack_to_be_beaten:
        return 'yes'
    else:
        return 'no'


if __name__ == '__main__':
    answer = solve()
    print(answer)

Submission status: Wrong Answer

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

while (b<=0) or (d<=0):
  if d>0:
    d -= a
    if d<=0:
      print("Yes")
    else:
      pass
    
  elif b>0:
    b -= c
    if b<=0:
      print("No")
    else:
      pass

Submission status: Wrong Answer

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

if (D // A) > (B//C):
  print("No")
elif ((D%A) !=0) & ((B%C) ==0) & ((D // A) == (B//C)):
  print("No") 
else:
  print("Yes")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
from sys import stdin


if __name__ == "__main__":
    _in = [_.rstrip() for _ in stdin.readlines()]
    A, B, C, D = list(map(int,_in[0].split(' ')))  # type:list(int)
    # vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
    TF = 'Yes' if B//C > D//A else 'No'
    # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    print(TF)

Submission status: Wrong Answer

Solution code:
a,b,c,d=map(int,input().split())
a,b=max(a,b),min(a,b)
c,d=max(c,d),min(c,d)
d=d-a
flag='NO'
if d<=0:
  flag='YES'
else:
  b=b-c
  if b<=0:
  	flag='NO'
  else:
    c=c-a
    if c<=0:
      flag='YES'
print(flag)

Submission status: Wrong Answer

Solution code:
th,ta,ah,aa = map(int,input().split())

at = ah / ta
tt = th / aa

if at >= tt:
  print("No")
elif at <= tt:
  print("Yes")

Submission status: Wrong Answer

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



#死ぬまでの攻撃回数を算出する
takahasi = A // D
aoki = C // B

if takahasi < aoki:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
a, b, c, d = map(int, input().split())
print('YNeos'[a//d < c//b::2])

Submission status: Wrong Answer

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

taka = (int(c/b)) + (1 if c%b != 0 else 0)
aoki = (int(a/d)) + (1 if a%d != 0 else 0)

if taka >= aoki:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
A,B,C,D=(int(x) for x in input().split())
t=A/D
a=C/B
if A%D==0:
    t=t
else:
    t=t+1
if C%B==0:
    a=a
else:
    a=a+1
if a<=t:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math

a, b, c, d = map(int, input().split())
T = a//d + a%d
A = c//b + c%b

T = math.ceil(T)
A = math.ceil(A)

if T >= A:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
#-*-coding:utf-8-*-

def main():
    a, b, c, d = map(int, input().split())
    aoki = c // b
    takahashi = (a // d)
    if aoki > takahashi:
        print("yes")
    else: 
        print("no")

    
if __name__ == '__main__':
    main()

Submission status: Wrong Answer

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: Wrong Answer

Solution code:
a,b,c,d=map(int,input().split())
tak=-(-a//d)
aoki=-(-c//b)
if tak<=aoki:
    print('No')
else:
    print('Yes')

Submission status: Wrong Answer

Solution code:
ABCD = list(map(int, input().split()))
A = ABCD[0]
B = ABCD[1]
C = ABCD[2]
D = ABCD[3]
if D*(C//D) >= A:
    print('No')
else:
    print('Yes')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b,c,d=[int(i) for i in input().split()]
if max(a,b)>max(c,d):
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

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

while 1:
    c -= b
    a -= d
    if a <= 0:
        print('No')
        exit()
    elif c <= 0:
        print('Yes')
        exit()

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python
# -*- coding: utf-8 -*-


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


if __name__ == "__main__":
    main()

Submission status: Wrong Answer

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

count_T = A // D
count_A = C // B

is_alive_T = bool(A % D)
is_alive_A = bool(C % B)

if count_T < count_A:
    print('Yes')
elif count_T > count_A:
    print('No')
else:
    if is_alive_T and is_alive_A:
        print('Yes')
    elif not is_alive_T and not is_alive_A:
        print('Yes')
    elif not is_alive_T and is_alive_A:
        print('Yes')
    else:
        print('No')

Submission status: Wrong Answer

Solution code:
A, B, C, D = map(int, input().split())
if A-C <= 1:
    if B-D <= 1:
        print("No")
else:
    print("Yes")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math
a, b, c, d = map(int, input().split())
if math.ceil(a / d) <= math.ceil(c / b) : print("Yes")
else: print("No")

Submission status: Wrong Answer

Solution code:
n,m,a,b=map(int,input().split())
if n+m>=a+b:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
a,b,c,d=map(int,input().split())
while 0<a or 0<c:
  c-=d
  a-=d

if a<=c:
  print("No")
else:
  print("Yes")

Submission status: Wrong Answer

Solution code:
from sys import stdin


if __name__ == "__main__":
    _in = [_.rstrip() for _ in stdin.readlines()]
    A, B, C, D = list(map(int,_in[0].split(' ')))  # type:list(int)
    # vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
    TF = 'Yes' if B//C >= D//A else 'No'
    # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    print(TF)

Submission status: Wrong Answer

Solution code:
raw_input = input().split()

takahashi_hp = int(raw_input[0])
takahashi_ak = int(raw_input[1])
aoki_hp = int(raw_input[2])
aoki_ak = int(raw_input[3])

while takahashi_hp > 0 and aoki_hp > 0:
    takahashi_hp -= aoki_ak
    aoki_hp -= takahashi_ak

if takahashi_hp <= 0:
    print('No')
elif aoki_hp <= 0:
    print('Yes')

Submission status: Wrong Answer

Solution code:
def main():
	a,b,c,d = map(int,input().split())
	i = 0
	while a >= 0 and c >= 0:
		i += 1
		a = a - i*d
		c = c - i*b
		if a == c == 0:
			print("Yes")
			break
		elif c <= 0:
			print("Yes")
			break
		elif a <= 0:
			print("No")
			break

	

if __name__ == '__main__':
	main()

Submission status: Wrong Answer

Solution code:
A, B, C, D = map(int, input().split())
count = 0
while A <=0 or C<=0:
    if count % 2 == 0:
        C -= B
    else:
        A -= D
    count += 1
if A <= 0:
    print("No")
else:
    print("Yes")

Submission status: Wrong Answer

Solution code:
a,b,c,d=list(map(int,input().split(" ")))
if c%b==0:
  taro=c//b
else:
  taro=c//b+1
if a%d==0:
  sasaki=a//d
else:
  sasaki=a//d+1

if taro<=sasaki:
  print("yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
# coding=UTF-8
from collections import deque
from operator import itemgetter
from bisect import bisect_left, bisect
import itertools
import sys
import math
sys.setrecursionlimit(10**6)
input = sys.stdin.readline


def main():
    a, b, c, d = map(int, input().split())
    flag = -1
    while (a >= 0 and c >= 0):
        if flag == -1:
            c -= a
        else:
            a -= d
        flag *= - 1
    if flag == 1:
        print("Yes")
    else:
        print("No")


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
A, B, C, D = map(int, input().split())
turn = "t"
while(A > 0 and C > 0):
    if turn == "t":
        C -= B
        turn = "a"
    else:
        A -= D
        turn = "t"
print(A, C)
if A <= 0:
    print("No")
elif C <= 0:
    print("Yes")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b,c,d = map(int, input().split())
cb = c // b
ad = a // d
print('No' if (cb <= ad)  else 'Yes')

Submission status: Wrong Answer

Solution code:
LI = lambda: list(map(int,input().split()))
MI = lambda: map(int,input().split())
yes = lambda: print("Yes")
no = lambda: print("No")
I = lambda: list(input())
J = lambda x: "".join(x)
II = lambda: int(input())
SI = lambda: input()
#---khan17---template
a,b,c,d = MI()
yes() if d//a<=b//c else no()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
x = input().split()
a = int(x[0])
b = int(x[1])
c = int(x[2])
d = int(x[3])

while True:
    d -= a
    if d == 0:
        print('Yes')
        break
    b -= c
    if b == 0:
        print('No')
        break

Submission status: Wrong Answer

Solution code:
T_H,T_A,A_H,A_A = map(int,input().split())


while True:
    T_H -= A_A
    if T_H > 0:
        A_H -= T_A    
        if A_H <= 0:
            print("Yes")
            exit()
    else:
        print("No")
        exit()

Submission status: Wrong Answer

Solution code:
def main():
    t, t_a, a, a_a = list(map(int, input().split()))
    while True:
        a = a - t_a
        if a <= 0:
            print('No')
            exit()
        t = t - a_a
        if t <= 0:
            print('Yes')
            exit()




if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
A,B,C,D = map(int,input().split())
if A%C ==0:
  t = A//C
else:
  t = A//C+1
if D%B ==0:
  u = D//B
else:
  u = D//B+1
print(t,u)
if t < u:
  print('No')
else:
  print('Yes')

Submission status: Wrong Answer

Solution code:
a,b,c,d = map(int, input().split())
print(["No","Yes"][a//d + (a%d) > b//c + (b%c)])

Submission status: Wrong Answer

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

if c % b == 0:
    takahashi = c / b
else:
    takahashi = c / b + 1

if a % d == 0:
    aoki = a / d
else:
    aoki = a / d + 1

if takahashi <= aoki:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
a,b,c,d=map(int,input().split())
if a+b>c+d and max(a,b)>max(c,d) and min(a,b)>min(c,d):
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

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

print(ans)

Submission status: Wrong Answer

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: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

while (A>0) and (C>0):
  A = A - D
  if A > 0:
    C = C - B
  else:
    break

if A == 0:
  print('No')
else:
  print('Yes')

Submission status: Wrong Answer

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

T = c//b + c%b
A = a//d + a%d
if T <= A:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

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

for i in range(100):
	if b*i>=c:
		print('Yes')
		break
	elif d*i>=a:
		print('No')
		break

Submission status: Wrong Answer

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

a_turn = a / d
b_turn = c / b

if a_turn % 1 == 0:
    a_turn = a // b
else:
    a_turn = (a//b) + 1

if b_turn % 1 == 0:
    b_turn = c // b
else:
    b_turn = (c // b) + 1

if a_turn == b_turn:
    print("Yes")
else:
    if a_turn > b_turn:
        print("Yes")
    else:
        print("No")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:

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

taka=C//B
if taka%B!=0:
    taka=taka+1
    
aoki=A//D
if aoki%D!=0:
    aoki=aoki+1

if taka <= aoki:
    print("No")
else:
    print("Yes")

Submission status: Wrong Answer

Solution code:
a,b,c,d =  [int(i) for i in input().split()]

while a > 0 and c > 0:
  c =- b
  if c <= 0:
    print('Yes')
  a =- d
  if a <= 0:
    print('No')

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

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

if a//d < c//b:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
t, a, ta, aa = list(map(int, input().split()))
while(True):
  a -= ta
  if a <= 0:
    print("Yes")
    break
  t -= aa
  if t <= 0:
    print("No")
    break

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if c//b > a//d:
    print('Yes')
elif c//b == a//d:
    if a%d!=0:
        print('Yes')
    else:
        print('No')
else:
    print('No')

Submission status: Wrong Answer

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

if a//c > b//d + 1:
    print('No')
else:
    print('Yes')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
A ,B ,C ,D = map(int,input().split())
turn = 0
if A%C == 0:
    turn = A/D
else:
    turn = (A//D) +1
if B * (turn+1) > C:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
a,b,c,d = map(int, input().split())
turn = 0
while a>=0 and c>=0:
    if not turn:
        c=c-b
        turn = 1
    else:
        a=a-d
        turn = 0

if a==0:
    print("No")
else:
    print("Yes")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
A,B,C,D=map(int,input().split())
if A+B>C+D:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Takalifec = int(A / D)
Aolifec = int(C / B)
if Takalifec < Aolifec:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
l=list(map(int,input().split()))
a,b,c,d=l[0],l[1],l[2],l[3]
if (a+b)>(c+d):
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
a,b,c,d=map(float,input().split())
ta=c/b
aa=a/d
if(c%d):
    ta=ta+1
if(a%d):
    aa=aa+1
if(ta<aa):
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
a, b, c, d = map(int, input().split())
print('Yes' if int(c / b + 1) <= int(a / d + 1) else 'No')

Submission status: Wrong Answer

Solution code:
# abc164_b.py
A,B,C,D = map(int,input().split())
for i in range(1000):
    if i%2 == 1:
        A = A - D
    else:
        C = C - B
    if C < 0:
        if A > C:
            print('No')
            break
        else:
            print('Yes')
            break

Submission status: Wrong Answer

Solution code:
LI = lambda: list(map(int,input().split()))
MI = lambda: map(int,input().split())
yes = lambda: print("YES")
no = lambda: print("NO")
I = lambda: list(input())
J = lambda x: "".join(x)
II = lambda: int(input())
SI = lambda: input()
#---khan17---template
a,b,c,d = MI()
yes() if d//a<=b//c else no()

Submission status: Wrong Answer

Solution code:
A, B, C, D = map(int,input().split())
if (A // D) >= (C // B):
    print("No")
else:
    print("Yes")

Submission status: Wrong Answer

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



while 1:
    a = a - d
    if a <= 0:
        print('No')
        exit()
    c = c - d
    if c <= 0:
        print('Yes')
        exit()

Submission status: Wrong Answer

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

taka = (int(b/c)) + (1 if b%c != 0 else 0)
aoki = (int(d/a)) + (1 if d%a != 0 else 0)

if taka >= aoki:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
ta, td, aa, ad = map(int, input().split())

which = -1
while td > 0 and ad > 0:
    if which == -1:
        ad -= ta
    else:
        td -= aa
    which *= -1

if ad <= 0:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

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

ao = a % d + 1
taka = c % b + 1

if taka<=ao:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

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

for i in range(1,100):

    if c-(b*i) <= 0:
        print("yes")
        break
    elif a-(d*i) <= 0:
        print("No")
        break
    else:
        None

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a, b, c, d = map(int, input().split())
if a//d + 1 <= c//b:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
import sys
sys.setrecursionlimit(10 ** 9)
input = sys.stdin.readline
from itertools import permutations,  combinations, accumulate
from functools import *
from collections import deque, defaultdict, Counter
from heapq import heapify, heappop, heappush, heappushpop

INF = float('inf')
NIL = - 1

""" Input
S = input().rstrip()
N = int(input())
A = list(map(int, input().split()))
A = np.array(input().split(), dtype=np.float64)
D = [int(input()) for _ in range(N)]
AB = [[int(x) for x in input().split()] for _ in range(N)]
PX = [[int(x) for x in input().split()] for _ in range(Q)]
"""

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

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







# def main():

# if __name__ == '__main__':
#     main()

Submission status: Wrong Answer

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

for i in range(1001):
    if i % 2 == 0:
        c -= b
        if c <= 0:
            print("Yes")
            break
    elif i % 2 == 1:
        a -= d
        if a <= 0:
            print("NO")
            break

Submission status: Wrong Answer

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

T_time = C // B
if not C % B == 0 :
  T_time += 1

A_time = A // D
if not A % D == 0 :
  T_time += 1

if T_time <= A_time :
  print("Yes")
else :
  print("No")

Submission status: Wrong Answer

Solution code:
def retm(a,b):
  if a%b>0:
    return 1
  else:
    return 0

ta,th,aa,ah=map(int,input().split())
if int(ah/ta)+retm(ah,ta)<=int(th/aa)+retm(th,aa):
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
a,b,c,d=map(int,input().split())
ta=(c-1)//b+1
ao=(d-1)//a+1
print('Yes') if ta<=ao else print('No')

Submission status: Wrong Answer

Solution code:
T_H,T_A,A_H,A_A = map(int,input().split())


while True:
    T_H -= A_A
    if T_H > 0:
        A_H -= T_A    
        if A_H < 0:
            print("Yes")
            exit()
    else:
        print("No")
        exit()

Submission status: Wrong Answer

Solution code:
A , B , C ,D = map(int,input().split())
if C % B == 0:
    t = C // B
else:
    t = C // B + 1
if A % D == 0:
    a = A // D
else:
    a = A // D + 1
if t >= a:
    print("Yes")
else:
    
    print("No")

Submission status: Wrong Answer

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

  aoki_hp = a
  takahashi_hp = c
  while aoki_hp > 0 and takahashi_hp > 0:
    aoki_hp -= d
    takahashi_hp -= b
    # print(aoki_hp,takahashi_hp)

  if aoki_hp > takahashi_hp:
    print('No')
  elif aoki_hp < takahashi_hp:
    print('Yes')


if __name__ == '__main__':
  main()

Submission status: Wrong Answer

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: Wrong Answer

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


while(True):
    if C-B <= 0:
        print("yes")
        break
    C -= B
    if A-D <= 0:
        print("no")
        break
    A -= D

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b,c,d =  [int(i) for i in input().split()]

while a > 0 and c > 0:
  c =- b
  a =- d

if a <= 0:
  print('No')
if c <= 0:
  print('Yes')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if (a-1)//d  < (c-1)//b:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
from sys import stdin
a,b,c,d = [int(x) for x in stdin.readline().rstrip().split()]
aa = a // d + 1
bb = c // b + 1
if aa <= bb:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
w = input().split()
a=int(w[0])
b=int(w[1])
c=int(w[2])
d=int(w[3])
if a/b>=c/d:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
[A, B, C, D] = input().split(' ')
A = int(A)  # health
B = int(B)  # strength
C = int(C)  # health
D = int(D)  # strength

turn = 0
while A > 0 and C > 0:
    if turn == 0:
        C = C - B
        turn = 1
    else:
        A = A - D
        turn = 0

if A == 0:
    print('No')
else:
    print('Yes')

Submission status: Wrong Answer

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

if C % B != 0:
    ans_A =  ((C // B) + 1)
else:
    ans_A = C // B

if A % D != 0:
    ans_C =  A // D + 2
else:
    ans_C = A // D


if ans_A <= ans_C:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

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

import math

if math.ceil(c/b)>=math.ceil(a/d):
    print('Yes')
else:
    print('None')

Submission status: Wrong Answer

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

x = C / B
y = A / D

if C % B != 0:
  x += 1
if A % D != 0:
  y += 1
  
if x <= y:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
from math import ceil
a,b,c,d=map(int,input().split())
t=ceil(c/b)
a=ceil(a/d)
if t<=a:
    print("yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
a, b, c, d = map(int, input().split())
first = a // d
if a % d:
    first += 2
second = c // b
if c % b:
    second += 1
if first < second:
    print("No")
else:
    print("Yes")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a, b, c, d = map(int, input().split())
import math
ao = math.ceil(a / d)
taka = math.ceil(c / b)
#print(taka, ao)
if taka == ao:
    print('YES')
else:
    if taka > ao:
        print('NO')
    else:
        print('YES')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
def main():
    A, B, C, D = map(int, input().split())
    for i in range(101):
        if i % 2 == 0:
            C -= B
            if C <= 0:
                print("Yes")
                break
        else:
            A -= D
            if A <= 0:
                print("No")
                break
if __name__ == "__main__":
    main()

Submission status: Wrong Answer

Solution code:
import sys
a,b,c,d=map(int,input().split())
t = a / d
ao = c / b
if (t < ao):
    print('Yes')
elif (t == ao):
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
s=list(map(int,input().split()))
a=s[0]
b=s[2]
c=0
for i in range(200):
  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: Wrong Answer

Solution code:
[a,b,c,d]=list(map(int,input().split()))
ans="No"
chokudai=c//b
if c%b!=0:
    chokudai+=1
aoki=a//d
if a%b!=0:
    aoki+=1
if chokudai>=aoki:
    ans="Yes"
print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:


a, b, c, d = [0] * 4

def format_input(filename = None):
	global a, b, c, d
	if filename == None:
		a, b, c, d = list(map(int, input().split()))

	elif filename == '__random__':
		from random import randint as rng
		a = rng(1, 10**1)
		b = rng(1, 10**1)
		c = rng(1, 10**1)
		d = rng(1, 10**1)
		print(a, b, c, d)

def get_answer():
	t_attack = (c - 1) % b
	a_attack = (a - 1) % d

	if t_attack >= a_attack:
		answer = 'Yes'
	else:
		answer = 'No'
	return answer

if __name__ == '__main__':
	format_input()

	ans = get_answer()
	print(ans)

Submission status: Wrong Answer

Solution code:
A,B,C,D = map(int,input().split())
state = "Yes"
while 1:
  C -= B
  if C <= 0:
    break
  D -= A
  if D <= 0:
    state = "No"
    break
print(state)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
from sys import stdin
def solve():
	return


def main():
	inp=stdin.readline
	a,b,c,d=map(int, inp().split())
	f=True
	while a>0 and c>0:
		if f:
			a-=d
		else:
			c-=b
		f=not(f)
	if a>0:
		print("Yes")
	else:
		print("No")

main()

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
A, B, C, D = map(int, input().split())
a = int(C // B) + 1
c = int(A // D) + 1
if a <= c:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

gap = D - B

if gap > (C-D):
    print('No')
else:
    print('Yes')