For this Question: You are fighting against a monster.
The monster has health M while you have initial health Y.
To defeat him, you need health strictly greater than the monster's health.

You have access to two types of pills, red and green. Eating a red pill adds R to your health while eating a green pill multiplies your health by G.

Determine if it is possible to defeat the monster by eating at most one pill of any kind.Input contains four integers M (0 <= M <= 10<sup>4</sup>), Y (0 <= Y <= 10<sup>4</sup>), R (0 <= R <= 10<sup>4</sup>) and G (1 <= G <= 10<sup>4</sup>).Print 1 if it is possible to defeat the monster and 0 if it is impossible to defeat it.Sample Input 1:
10 2 2 2 

Sample Output 1:
0

Sample Input 2:
8 7 2 1

Sample Output 2:
1

Explanation for Sample 2:
You can eat a red pill to make your health : 7 + 2 = 9  > 8., I have written this Solution Code: a = []
a = list(map(int, input().split()))
if a[1]+a[2] > a[0] or a[1]*a[3] > a[0]:
    defeat = 1
else:
    defeat = 0
print(defeat), In this Programming Language: Python, Now tell me if this Code is compilable or not?