n, m = map(int, input().split()) A = list(map(int, input().split())) B = list(map(int, input().split())) x = 0 y = 0 for a in A: x ^= a for b in B: y ^= b if all(a == 1 for a in A): if sum(A) % 2 == 0 or y > 0: print("First") else: print("Second") elif x > 0: print("First") else: print("Second")