def extract_arguments(fh):
    N = int(fh.readline().strip())
    intervals = []
    for _ in range(N):
        A, B = map(int, fh.readline().strip().split())
        intervals.append((A, B))
    return N, intervals