#K54672. Maximum Package Delivery

    ID: 29806 Type: Default 1000ms 256MiB

Maximum Package Delivery

Maximum Package Delivery

You are given a budget, a distance and a weight in order to determine the maximum number of packages that can be delivered using two delivery methods: standard delivery and express delivery. The cost for each package by standard delivery is computed as:

\( cost_{standard} = 5 + 0.10 \times distance + 0.05 \times weight \)

Similarly, the cost by express delivery is computed as:

\( cost_{express} = 10 + 0.20 \times distance + 0.10 \times weight \)

Given the budget, your task is to calculate the maximum number of packages that can be sent using each method without exceeding the budget.

Note: The result for each method should be the integer division of the budget by the corresponding cost.

inputFormat

Input consists of a single line containing three integers separated by spaces: budget, distance, and weight.

outputFormat

Output two integers separated by a space. The first integer is the maximum number of packages that can be delivered with standard delivery, and the second is for express delivery.## sample

500 50 20
45 22