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