{"problem":{"name":"180°","description":{"content":"You are given a string $S$ consisting of `0`, `1`, `6`, `8`, and `9`. Rotate $S$ $180$ degrees and print the result. In other words, apply the following operations on $S$ and print the resulting strin","description_type":"Markdown"},"platform":"AtCoder","limit":{"time_limit":2000,"memory_limit":262144},"difficulty":"None","is_remote":true,"is_sync":true,"sync_url":null,"sign":"abc202_b"},"statements":[{"statement_type":"Markdown","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`.\n\n## Constraints\n\n*   $1 \\leq |S| \\leq 10^5$\n*   $S$ consists of `0`, `1`, `6`, `8`, and `9`.\n\n## Input\n\nInput is given from Standard Input in the following format:\n\n$S$\n\n[samples]","is_translate":false,"language":"English"}],"meta":{"iden":"abc202_b","tags":[],"sample_group":[["0601889","6881090\n\nRotating `0601889` $180$ degrees results in `6881090`."],["86910","01698"],["01010","01010\n\n$S$ may remain the same."]],"created_at":"2026-03-03 11:01:14"}}