import itertools as it
num=int(input())
fish=[]
for x in range(num):
  line=input().split()
  line=[int(i) for i in line]
  fish.append(line)
fnum=list(range(0,num))
for y in range(1,num+1):
  check=0
  print(fish[[0][0]])
#  for z in it.combinations(fnum,y):
  check+=fish[[0][0]]*fish[[0][0]]
  print(z)
  print(check)
