input = 333
def func():
input = 444
func()
print(imput)

def func():
print(x)
x = 111
func()

x = 1
def func():
print(x)
def foo():
x = 222
func()
foo()

input = 111
def f1():
def f2():
input = 333
print(input)
input = 222
f2()
f1()

x = 111
def func();
print(x)
x = 222
func()

x = 111
def foo():
print(x)
def bar():
print(x)
foo()
bar()

x = 1
def func2():
func1()
x = 2
def func1():
print(x)
x = 3
func2()
