def extract_arguments(fh):
    x_s, y_s = map(int, fh.readline().strip().split())
    x_g, y_g = map(int, fh.readline().strip().split())
    N = int(fh.readline().strip())
    polygon = []
    for _ in range(N):
        x_i, y_i = map(int, fh.readline().strip().split())
        polygon.append((x_i, y_i))
    return (x_s, y_s), (x_g, y_g), N, polygon