for _,x in sorted((bin(x).count('1'),-x)for x in range(256)):print bin(256-x)[3:]