N = int(input()) #ここで標準入力 P = [tuple(tuple(map(float,input().split()))) for i in range(N)] Q = int(input()) X = [tuple(tuple(map(float,input().split()))) for i in range(Q)]