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

Solution in C++ (GCC 9.2.1) (judge verdict: Accepted)


#include<bits/stdc++.h>
using namespace std;
#define  ll  long long  //define a macro variable of long long type
# define  loop(x,n)  for(int x = 0; x < n; ++x)  // define a for loop
#define   constloop(x,a,n) for(int x = a; x < n; ++x)  //define a for loop with start a const
#define  revloop(x,a,n)  for(int x = a; x > n; x--) // rev for loop
//#define   vect vector<ll>  // define a vector of longlong type;


int  main() {

//
//#ifndef ONLINE_JUDGE
//
//   freopen("input.txt", "r", stdin);
//
//   freopen("output.txt", "w", stdout);
//   #endif

   ios_base::sync_with_stdio(false);
   cin.tie(NULL);
int a,b,c,d;
cin>>a>>b>>c>>d;
int l=a;
int m=c;
bool s=true;
while(l>0 && m>0)
{
    if(s)
    {
        m -=b;
        s=false;

    }
    else
    {
        l -=d;
        s=true;
    }


}
//cout<<l<<" "<<m;
if(l<=0)
{
    cout<<"No"<<endl;
}
else
    cout<<"Yes"<<endl;

   return 0;

}