paste bin

malic
Python
y=1+int(input())

while True:
    s1= set()
    for it in str(y):
        s1.add(it)
    if len(s1)==4:
        break
    y+=1
print(y)

2020 C1QB

fork this code