Number convention

It’s easier to read numbers like 1.000.000 compared to numbers written like 1000000. The first variant helps in immediately identifying how to pronounce the number without counting the number of characters.
Given an 8-digit number, you are asked to convert it into a more readable form.
Input
Output
89034210
89.034.210
60912431
60.912.431
 

Constraints

Time limit: 2 seconds

Memory limit: 512 MB

Output limit: 1 MB

To check your solution you need to sign in
Sign in to continue