import sys
from importlib import reload
import NN_tools

def parametrs_to_string(param):
    str_p = ''
    for item in param:
        str_p+=str(item)
        str_p+=','
    str_p = str_p[:-1]
    return  str_p



def execute(NN_name,parametrs):
    # try:
    results = []
    parametrs_s = parametrs_to_string(parametrs)
    exec("reload(NN_tools)")
    exec("reload(NN_tools.{})".format(NN_name))
    exec("results.append(NN_tools.{}.{}({}))".format(NN_name,NN_name,parametrs_s))
    return results[0]
    # except:
    #     return None

if __name__ =="__main__":
    while True:
        print(execute(input("name:"),[int(input("a:")),input("b:")]))

