Daisy has a Locker which contains a combination number lock. It needs a pair of numbers to open the lock. As a measure of safety, Daisy uses to change the key numbers once in a month. At the same time she is also afraid of forgetting it, and hence she writes the first number alone in a paper and keeps it secretly. From the first number she can easily find the second number because the second number is formed by considering each digit’s next odd /even sequence.
For example if the first number is 9278, then the second number is 1490.
Write a program that gets the first number from the user and gives the second number.
NOTE: If the input is 8888 or a negative number display "Invalid Input".
If input is 0053, the output should be 75.
If input is 8874, the output should be 96.
Sample input
Enter the first number
3648
Sample output
The second number is: 5860