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