def hantei(N): if N < 2: return False elif N == 2: return True elif N % 2 == 0: return False for i in range(int(N**0.5/2)): if(N%(3+2*i) == 0): return False return True X,Y =map(int,input().split()) X1 =X Y1 =Y while not(hantei(X1)) and X1 !=10**1333: X1 +=1 while not(hantei(Y1)) and Y1 !=10**1333: Y1 +=1 X1 -= X Y1 -= Y if (X1+Y1)%2 ==0: print("Second") else: print("First")