Competitions
Week 4: November 30 – December 6. While Loop. Part 1
Change the parity
Positive integer n is given. Increase by 1 all its even digits and decrease by 1 all its odd digits.
Input
One positive integer n.
Output
Print the updated number.
Input example #1
30
Output example #1
21