Challenge: Split the Bill

Lab Python Beginner 10 points

Friends are sharing a restaurant bill. Read the bill amount and the number of people, then print how much each person pays, rounded to 2 decimal places.

Input

Line 1: the bill (may have decimals). Line 2: number of people.

Output

Each person pays: <amount>

Example

Input

1200
4

Output

Each person pays: 300.0
Sample input available Sample output available
Editor
Python

Hints

Use float() for the bill and int() for the people.

round(value, 2) keeps two decimal places.

Solution explanation

Divide the bill by the number of people and round to 2 places with round(..., 2).

Show solution
bill = float(input())
people = int(input())
print("Each person pays:", round(bill / people, 2))
Output
Answer
HOME LEARN COMMUNITY DASHBOARD