n = int(input())
a = -3
b = -2
c = -1

for x in range(n):
    for y in range(1):
        a += 4
        b += 4
        c += 4
    print(a,b,c,"PUM")

n = int(input())
a = -3
b = -2
c = -1

for x in range(n):
    for y in range(1):
        a += 4
        b += 4
        c += 4
    print(a,b,c,"PUM")
