for x in range(10001): if len(set(`x`))==2:print x