You are given a string
S
exactly 9 characters long. Each character in the string is any of the digits from
0
to
9
. All characters in the string are different. Print the missing digit in the string.
Input
The input is a string consisting of numbers.
Imprint
Display the answer to the problem
Examples
# |
Input |
Output |
1 |
023456789
|
1
|
2 |
459230781
|
6
|