Skip to content
Snippets Groups Projects
10.py 179 B
Newer Older
hacker717's avatar
hacker717 committed
from itertools import product

n = int(input())

print("А Б В")

for a, b in product([i for i in range(1, n - 1)], repeat=2):
    if a + b < n:
        print(a, b, n - (a + b))