G - Three numbers

Languages: C, C++, Java, Python, Kotlin, C#
Time & Memory limits: (details)

You are given  three digits A, B, C (not necessarily different). Find three digits X, Y, Z satisfying the following restrictions:

  • $X$, $Y$, $Z$ are mutually different.
  • $X \neq A$
  • $Y \neq B$
  • $Z \neq C$
  • $1 \le X, Y, Z \le 9$

Input

Only one line with three integers $A$, $B$, $C$ ($1 \le A, B, C \le 9$).

Output

Three integers $X$, $Y$, $Z$ satisfying the restrictions of the problem. (Any triple satisfying the restrictions will be accepted).

Sample test(s)

Input
9 8 7
Output
1 2 3
Input
1 1 1
Output
2 3 4