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

#include<stdio.h>
#include<stdlib.h>

#define MAXNUM 32

void save_str(int array_num, char **str) {
    int i = 0, j = 0, count = 0;
    char temp[MAXNUM];
  
    if(scanf("%[^\n]", temp));
    while (temp[++i] != '\0') {
      if (temp[i] == ' ') {
        count++;
        temp[i] = '\0';
      }
    }
    if (count + 1 != array_num) return;
  
  
    str[0] = &temp[0];
    for (i = 1; i < array_num; i++) {
      while (temp[++j] != '\0');
      str[i] = &temp[++j];
    }
    
    return;
}

int main(void) {
  int i, k, num[4];
  char **val;

  val = (char **)malloc(MAXNUM * sizeof(char *));
  for (k = 0; k < 4; k++) {
    val[k] = (char *)malloc(MAXNUM * sizeof(char));
  }
  save_str(4, val);

  for (i = 0; i < 4; i++) {
    num[i] = atoi(val[i]);
  }
  
  while (1) {
    if((num[0] -= num[3]) <= 0) {
      printf("No");
      break;
    } else if((num[2] -= num[1]) <= 0) {
      printf("Yes");
      break;
    }

  }

  return 0;

}