def isPrime(num): if num==1: return False if num==2: return True if num%2==0: return False for i in range(3,int(num**.5)+1,2): if num%i==0: return False return True def simulate(x,y,teban): go_x = isPrime(x+1) or isPrime(y) go_y = isPrime(x) or isPrime(y+1) if go_x+go_y == 2: return teban%2==1 elif go_x: return simulate(x,y+1,teban+1) elif go_y: return simulate(x+1,y,teban+1) else: if simulate(x+1,y,teban+1)==(teban%2==0): return teban%2==0 elif simulate(x,y+1,teban+1)==(teban%2==0): return teban%2==0 else: return teban%2==1 x,y = map(int,input().split()) if simulate(x,y,0): print('First') else: print('Second')