f=lambda c:c.replace(c[0],'') for a in range(10001): d=f(str(a)) if d: if not f(d):print a