def count():
fs = []
for i in range(1,4):
def f():
n=i*i
return n
fs.append(f)
return fs
c1,c2,c3 = count()
print(c1(),c2(),c3())
def count2():
fs = []
for i in range(1,4):
def f(i):
return lambda :i*i
fs.append(f(i))
return fs
c1,c2,c3 = count2()
print(c1(),c2(),c3())