def extract_arguments(fh):
    lines = fh.readlines()
    N, M, A = map(int, lines[0].strip().split())
    grid = [line.strip() for line in lines[1:N+1]]
    return N, M, A, grid

# if __name__ == "__main__":
#     input_path = sys.argv[1]
#     with open(input_path, 'r') as fh:
#         N, M, A, grid = extract_arguments(fh)
#         f(N, M, A, grid)