function a() begin x = 1 function b() begin y = 2 print(y," ", x,"\n") x = 3 print(x,"\n") end print(x,"\n") b() print(x,"\n") end a()