LearnPy Hub
← If…Else problems
Medium

Shipping Cost

Shipping costs 60 for up to 1 kg, 100 for up to 5 kg and 100 + 20 per extra whole-or-part kg above 5. Orders of 2000 or more ship free. Read the weight and the order total and print the cost.

Input

Weight (decimal), then order total.

Output

One integer.

Sample 1

Input
0.5
500
Output
60

Sample 2

Input
3
1000
Output
100
solution.py
Output appears here
Shipping Cost · Python practice problem · LearnPy Hub