while True: try: m,n = list(map(int,input().split())) x1,y1,x2,y2 = list(map(int,input().split())) x = int(input()) y = int(input()) x3,y3 = list(map(int,input().split())) #1 输入表格的行列值m,n,范围均在【0,9】 if 0 <= m <= 9 and 0 <= n <= 9: print(0) else: print(-1) #2 输入交换的坐标值,横坐标的范围【0,m】,纵坐标的范围【0,n...