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

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