def run(): print max_path(P)
def run(): data_dir = '{0}/../data'.format(os.path.dirname(__file__)) P = open(os.path.join(data_dir, 'triangle.txt'), 'r').read() print max_path(P)