# triple nested exceptions
def f():
try:
foo()
except:
print("except 1")
bar()
print("except 2")
baz()
print("except 3")
bak()
f()
print("f except")