AtCoder Beginner Contest 164
B
Battle
AtCoder
⌀ 0
原题
← AC →
翻译中…

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.

翻译中…

样例

Input #1
10 9 10 10
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.
Input #2
46 4 40 5
Output #2
Yes
题目信息
题号
abc164_b
时间限制
2 s
内存限制
1024 MB

题面与样例版权归 AtCoder 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。