eolymp
bolt
Try our new interface for solving problems
Problems

Change the parity

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\:(n \le 10^9)$.

Output

Print the updated number.

Time limit 1 second
Memory limit 128 MiB
Input example #1
983210
Output example #1
892301
Author Matviychuk Sergiy Volodymyrovych
Source "ABC programming"