def f1():
print('f1')
def f2():
print('f2')
def f3():
print('f3')
def run_all(value, *args):
if value == 'run f3':
args[2]()
else:
args[0]()
args[1]()
run_all('run f3', f1, f2, f3)
ZGVmIGYxKCk6CglwcmludCgnZjEnKQoKZGVmIGYyKCk6CglwcmludCgnZjInKQoKZGVmIGYzKCk6CglwcmludCgnZjMnKQoKZGVmIHJ1bl9hbGwodmFsdWUsICphcmdzKToKCWlmIHZhbHVlID09ICdydW4gZjMnOgoJCWFyZ3NbMl0oKQoJZWxzZToKCQlhcmdzWzBdKCkKCQlhcmdzWzFdKCkKCnJ1bl9hbGwoJ3J1biBmMycsIGYxLCBmMiwgZjMp