import sys input=lambda: sys.stdin.readline().rstrip() y,x=map(int,input().split()) def prime(n): divisors=[] for i in range(1,int(n**0.5)+1): if n%i==0: divisors.append(i) if i!=n//i: divisors.append(n//i) return len(divisors)==2 for i in range(y): if prime(y+i): yy=i break else: continue for i in range(x): if prime(x+i): xx=i break else: continue if (yy-xx)%2==0: print("Second") else: print("First")