Big Numbers

Lab Python Beginner 10 points

Read a large integer and print it with comma thousands separators, then as a percentage of 10,000,000 with one decimal place followed by %.

Input

One integer.

Output

Two lines, e.g. 1,234,567 and 12.3%.

Example

Input

1234567

Output

1,234,567
12.3%
Sample input available Sample output available
Editor
Python

Hints

{n:,} inserts thousands separators.

The % format type multiplies by 100 and adds a percent sign.

Solution explanation

:, groups digits and :.1% shows a ratio as a percentage. Underscores in 10_000_000 are just for readability.

Show solution
n = int(input())
print(f"{n:,}")
print(f"{n / 10_000_000:.1%}")
Output
Answer
HOME LEARN COMMUNITY DASHBOARD