for n in range(7**7): if all(e^`n`.find(`e+1`)>0for e in range(6)):print n