def extract_arguments(fh):
    N, L = map(int, fh.readline().strip().split())
    strings = [fh.readline().strip() for _ in range(N)]
    return N, L, strings

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