# your code goes here
b = 6

def f_a():
	print(a)
	
def f_b():
	print(b)
	
def g_a():
	if False:
		a = 5
	print(a)
	
def g_b():
	if False:
		b = 5
	print(b)

for f in [f_a, f_b, g_a, g_b]:
	print(f.__name__)
	try:
		f()
	except Exception as e:
		print(type(e), e)
	print()