def extract_arguments(fh):
    N, H, W = map(int, fh.readline().strip().split())
    paths = []
    for _ in range(N):
        Li = int(fh.readline().strip())
        path = []
        for _ in range(Li):
            px, py = map(int, fh.readline().strip().split())
            path.append((px, py))
        paths.append(path)
    return N, H, W, paths

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