{"raw_statement":[{"iden":"problem statement","content":"You are given a string $S$ consisting of `0`, `1`, `6`, `8`, and `9`.\nRotate $S$ $180$ degrees and print the result. In other words, apply the following operations on $S$ and print the resulting string:\n\n*   Reverse $S$.\n*   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`."},{"iden":"constraints","content":"*   $1 \\leq |S| \\leq 10^5$\n*   $S$ consists of `0`, `1`, `6`, `8`, and `9`."},{"iden":"input","content":"Input is given from Standard Input in the following format:\n\n$S$"},{"iden":"sample input 1","content":"0601889"},{"iden":"sample output 1","content":"6881090\n\nRotating `0601889` $180$ degrees results in `6881090`."},{"iden":"sample input 2","content":"86910"},{"iden":"sample output 2","content":"01698"},{"iden":"sample input 3","content":"01010"},{"iden":"sample output 3","content":"01010\n\n$S$ may remain the same."}],"translated_statement":null,"sample_group":[],"show_order":["default"],"formal_statement":null,"simple_statement":null,"has_page_source":true}