#P5706. 【深基2.例8】再分肥宅水

【深基2.例8】再分肥宅水

Problem Description

Now there are tt milliliters of soda, which will be divided equally among nn students. Each student needs 22 cups. Now you want to know how many milliliters of drink each student can get (accurate strictly to 33 digits after the decimal point), and how many cups are needed in total.

Input Format

Input a real number tt and a positive integer nn, separated by a space.

Output Format

Output two lines.

On the first line, output a number with three digits after the decimal point, representing how many milliliters of drink each student can get. On the second line, output a positive integer, representing how many cups are needed in total.

500.0 3
166.667
6

Hint

For all data, 0t100000\leq t\leq 10000 and there are no more than 33 digits after the decimal point, 1n10001\leq n\leq 1000.

Translated by ChatGPT 5