import random
x = int(input())
for i in range(10 * x):
j = random.randint(1,x)
k = random.randint(1,x)
print("edge(", j, ",", k, ").")