# 20241015 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 if 0 <= m <= 9 and 0 <= n <= 9: print("0") else: print("-1") # 2 if 0 <...