LearnPy Hub
← Arena
EasyRating 800

Party Toasts

k bottles of l ml drink, c limes cut into d slices, p grams of salt. A toast needs nl ml of drink, one slice and np grams of salt for each of n friends. How many toasts can each friend make?

Input

Eight integers n, k, l, c, d, p, nl, np.

Output

One integer.

Sample 1

Input
3 4 5 10 8 100 3 1
Output
2

Sample 2

Input
5 100 10 1 19 90 4 3
Output
3
solution.py
Output appears here
Party Toasts · Python Arena problem · LearnPy Hub