n = int(input())
r = [[0, 25, 75], [4, 18, 78], [8, 11, 81], [12, 4, 84]]
for i in r:
    for j in i:
        print(j, end=' ')
    print()