Can\'t complete the task and need your help. With single digits all OK, but when i trying numbers like 9865, output is wrong.
Task:
Input:
The first line co