#!/usr/bin/env python3 # NOTE: it is recommended to use this even if you don't understand the following code. import sys # uncomment the two following lines if you want to read/write from files # sys.stdin = open('input.txt') # sys.stdout = open('output.txt', 'w') input = sys.stdin.readline # fast input, needed for Q up to 200000 N, M = map(int, input().strip().split()) X0, Y0, XV, YV = map(int, input().strip().split()) Q = int(input().strip()) X = [0 for i in range(Q)] Y = [0 for i in range(Q)] for i in range(Q): X[i], Y[i] = map(int, input().strip().split()) A = ["" for i in range(Q)] # INSERT YOUR CODE HERE sys.stdout.write("".join(A[i] + "\n" for i in range(Q))) sys.stdout.close()