Complete to 9
Easy
CPU usage time limit is 0.999 seconds
Runtime memory usage limit is 244.141 megabytes
Given a three-digit natural number n, your task is to create a new number by replacing each digit of n with its complement to 9. For instance, if n = 105, the resulting number will be 894.
Input
The input consists of a single line containing the number n, where 100 ≤ n ≤ 999.
Output
Print the newly formed number on a single line.
Examples
Input
Answer
Submissions 660
Acceptance rate 50%