Computer Science, asked by bhanotepyush, 2 months ago

People of Dholakpur are facing some serious issues .People are turning to zombies one by one. Raja InderWarma decided to start production of laddus with some special powers which can save them. People of Dholakpur are impatient to know when laddus will be available to them. Bheem and Kalia decided to produce their separate laddus for helping people. Bheem starts producing laddus on day d1 and he with his team can produce n1 number of laddus per day. Similarly Kalia starts producing laddus on day d2 and with help of his team he can produce n2 laddus per day. Presently we are on day 1.

In total we need X number of laddus .Raja InderWarma wants to know how many days would it take to produce enough laddus? You need to find the smallest integer A so that people of Dholakpur receives enough number of laddus at the end of day A.

Input The first and only line of the input contains five space-separated integers d1, n1, d2, n2 and X.

Output Print a single line containing one integer ― the smallest required number of days.

Constraints

1≤d1,n1,d2,n2≤100

1≤X≤1,000

Example Input 1

1 2 1 3 14

Example Output 1

3

Explanation Since d1=d2=1, we can produce n1+n2=5 laddus per day. In 3 days, we produce 15 laddus, which satisfies our requirement of 14 laddus.

Answers

Answered by Anonymous
0

Answer:

People of Dholakpur are facing some serious issues .People are turning to zombies one by one. Raja InderWarma decided to start production of laddus with some special powers which can save them. People of Dholakpur are impatient to know when laddus will be available to them. Bheem and Kalia decided to produce their separate laddus for helping people. Bheem starts producing laddus on day d1 and he with his team can produce n1 number of laddus per day. Similarly Kalia starts producing laddus on day d2 and with help of his team he can produce n2 laddus per day. Presently we are on day 1.

Answered by harshgupta94
0

answer hai aur koi question hai kya

Attachments:
Similar questions