from random import randint
ls = []
for i in range(0, int(input())+1):
ls.append(randint(100, 300))
print(ls[i], i)
from random import randint
ls = []
for i in range(0, int(input())+1):
ls.append(randint(100, 300))
print(ls[i], i)