N, M = map(int, input().split()) A = list(map(int, input().split())) B = list(map(int, input().split())) def judge(A): grundy = 0 for a in A: grundy ^= a return grundy != 0 def judgel(A): if A.count(1) == 1: return len(A)%2 == 0 return judge(A) win = judge(A) lose = judgel(A) if not win^lose: print("First" if win else "Second") elif win: print("First" if judge(B) else "Second") else: print("Second")