n = int(input()) apple = [] k = int(input()) for i in range(k) : y, x = map(int, input().split()) apple.append([y, x]) order = [] l = int(input()) for i in range(l) : X, C = input().split() order.append([int(X), C]) right = [0, 1] # down = [1, 0] # left = [0, -1] # up = [-1, 0] def drift(d, lr) : if lr == 'D' : return [d[1], -d[0]] if lr == 'L' : return [-d[1], d[0]] snake = [[1,1]] direction = ..