100 #ABC202B. [ABC202B] 180°

[ABC202B] 180°

Score : 200200 points

Problem Statement

You are given a string SS consisting of 0, 1, 6, 8, and 9.

Rotate SS 180180 degrees and print the result. In other words, apply the following operations on SS and print the resulting string:

  • Reverse SS.
  • Replace each 0 with a 0, each 1 with a 1, each 6 with a 9, each 8 with an 8, and each 9 with a 6.

Constraints

  • 1S1051 \leq |S| \leq 10^5
  • SS consists of 0, 1, 6, 8, and 9.

Input

Input is given from Standard Input in the following format:

SS

Output

Print the result of rotating SS 180180 degrees.

0601889
6881090

Rotating 0601889 180180 degrees results in 6881090.

86910
01698
01010
01010

SS may remain the same.