def is_prime(N): if N == 2: return True elif N&1 == 0 or N == 1: return False i = 3 while i*i <= N: if N%i == 0: return False i += 2 return True a,b = map(int,input().split()) x = is_prime(a) y = is_prime(b) ans = 0 if x and y: ans = 1 elif not x and not y: ans = (x+y+1)%2 else: if y: a,b = b,a if x==2 or y==2: ans = 1 else: ans = (x+y+1)%2 print("First" if ans==0 else "Second")