The program accepts an integer N as the input. All the digits in the number must be repeated consecutively. If a digit is not repeated consecutively, the program must repeat it for two times. Finally, the program must print the modified integer value.
Boundary Condition(s):
1 <= N <= 10^13
Input Format:
The first line contains the value of N.
Output Format:
The first line contains the modified integer value.
Example Input/Output 1:
Input:
1223
Output:
112233
Explanation:
1 and 3 are not repeated consecutively. So consider 1 and 3 as 11 and 33.
Hence the output is 112233.
Mathematics teaches how to live.
To live we know mathematics.
R.ArunKumar
There r few things whch we knw whch r nt capable of mathmatical reasoning nd when these can nt it is a sign dt our knowledge of them is very smal nd confusd nd where a mathmaticl reasing can be had . It is as dark a foly to make use a candle stick as to g