LearnPy Hub
← Input problems
Easy

Thousands Separator

Read a whole number and print it with commas between thousands, e.g. 1234567 → 1,234,567.

Input

One integer.

Output

The formatted number.

Sample 1

Input
1234567
Output
1,234,567

Sample 2

Input
999
Output
999
solution.py
Output appears here
Thousands Separator · Python practice problem · LearnPy Hub