for i in range(10001): if len(set(str(i)))==2:print i