N, M = map(int, input().split()) A = list(map(int, input().split())) B = list(map(int, input().split())) A_xor = 0 B_xor = 0 for a in A: A_xor ^= a for b in B: B_xor ^= b def ans(bl): if bl: print('First') else: print('Second') ans((A_xor == 0) == (B_xor == 0))