TIME LIMIT = 1 SEC.
- We'll call a year an 'Amazing Year' if all the digits of that year are unique. Ex. 2019.Now, given a year as your input, print the past amazing year and the future amazing year for that input.
|First line will contain the input year.||Print two space-separated years - the past amazing year and the future amazing year to the input.|
- 123 ≤ Year ≤ 9876