def extract_arguments(fh):
    W, H = map(int, fh.readline().strip().split())
    maze = [fh.readline().strip() for _ in range(H)]
    return W, H, maze

# if __name__ == "__main__":
#     input_path = sys.argv[1]
#     with open(input_path, 'r') as fh: 
#         W, H, maze = extract_arguments(fh)
#         f(W, H, maze)