N,M=map(int,input().split()) A=list(map(int, input().split())) B=list(map(int, input().split())) if set(A) == {1} and len(A)%3==1: g1=0 for i in range(M): g1^=B[i] if g1==0: print("Second") else: print("First") exit() f = False for i in range(N): if A[i] > 1: f = True if f: g1=0 for i in range(N): g1^=A[i] if g1!=0: print("First") exit() else: g1=0 for i in range(N): g1^=A[i] if g1!=1: print("First") exit() g2=0 for i in range(N): g2^=A[i] if g2!=0: print("First") exit() else: print("Second") exit()