for a in range(1,3): if a%2!=0: print(a,end=" ") for b in range(1,a+1): if b%5==0: print(b,end=" ") for c in range(a,b+1): if c%3!=0: print(c,end=" ") print()