AtCoder Beginner Contest 111
A
AtCoder Beginner Contest 999
AtCoder
⌀ 0
原题
←B →
翻译中…

Problem Statement

翻译中…

Cat Snuke is learning to write characters. Today, he practiced writing digits 1 and 9, but he did it the other way around.

翻译中…

You are given a three-digit integer $n$ written by Snuke. Print the integer obtained by replacing each digit 1 with 9 and each digit 9 with 1 in $n$.

翻译中…

Constraints

翻译中…
  • $111 \leq n \leq 999$
  • $n$ is an integer consisting of digits 1 and 9.
翻译中…

Input

翻译中…

Input is given from Standard Input in the following format:

翻译中…

n

翻译中…

Output

翻译中…

Print the integer obtained by replacing each occurrence of 1 with 9 and each occurrence of 9 with 1 in $n$.

翻译中…

样例

Input #1
119
Output #1
991
Replace the `9` in the ones place with `1`, the `1` in the tens place with `9` and the `1` in the hundreds place with `9`. The answer is `991`.
Input #2
999
Output #2
111
题目信息
题号
abc111_a
时间限制
2 s
内存限制
1024 MB

题面与样例版权归 AtCoder 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。