Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- a = int(input())
- b = ord(input())
- c = ord(input())
- d = ord(input())
- e = int(input())
- n = int(input())
- for i in range(a, 100):
- for j in range(b, ord('Z') + 1):
- for k in range(c, ord('z') + 1):
- for l in range(d, ord('Z') + 1):
- for m in range(e, 9, -1):
- if i % 10 == 2 and m % 10 == 5:
- n -= 1
- if n == 0:
- print(f"{i}{chr(j)}{chr(k)}{chr(l)}{m}")
- exit(0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement