Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- year = input()
- year_as_int = int(year) + 1
- year = str(year_as_int)
- while True:
- symbols_count = len(year)
- unique_counts = len(set(year))
- if symbols_count == unique_counts:
- break
- else:
- year_as_int += 1
- year = str(year_as_int)
- print(year)
Advertisement
Add Comment
Please, Sign In to add comment