for n in range(1,50):
    if n%3==0 and n%5==0:
        print("PYTHON PROGRAMMING")
        
    elif n%3==0:
        print("PYTHON ")
    elif n%5==0:
        print("PROGRAMMING")
    else:
        print(n)
