n = int(input())
x=1
linhas = 1
while True:
    if linhas > n:
        break
    if x%4==0:
        print("PUM")
        x+=1
        linhas +=1
        continue
    print(x, end=" ")
    x+=1

8d8363339b9d88f80257aa743d3dfe8c4e245825
<mask token>

<mask token>
while True:
    if linhas > n:
        break
    if x % 4 == 0:
        print('PUM')
        x += 1
        linhas += 1
        continue
    print(x, end=' ')
    x += 1

n = int(input())
x = 1
linhas = 1
while True:
    if linhas > n:
        break
    if x % 4 == 0:
        print('PUM')
        x += 1
        linhas += 1
        continue
    print(x, end=' ')
    x += 1

n = int(input())
x=1
linhas = 1
while True:
    if linhas > n:
        break
    if x%4==0:
        print("PUM")
        x+=1
        linhas +=1
        continue
    print(x, end=" ")
    x+=1
