atcoder#ABC235A. [ABC235A] Rotate
[ABC235A] Rotate
Score : points
Problem Statement
Let denote the -digit integer whose digits are , , from left to right.
Given a -digit integer none of whose digits is , find .
Constraints
- is a -digit integer none of whose digits is .
Input
Input is given from Standard Input in the following format:
Output
Print the answer.
123
666
We have .
999
2997
We have .