100 atcoder#ABC248A. [ABC248A] Lacked Number
[ABC248A] Lacked Number
Score : points
Problem Statement
You are given a string of length exactly consisting of digits.
One but all digits from 0
to 9
appear exactly once in .
Print the only digit missing in .
Constraints
- is a string of length consisting of digits.
- All characters in are distinct.
Input
Input is given from Standard Input in the following format:
Output
Print the only digit missing in .
023456789
1
The string 023456789
only lacks .
Thus, should be printed.
459230781
6
The string 459230781
only lacks .
Thus, should be printed.
Note that the digits in the string may not appear in increasing order.