require 'prime' LIM = 10 ** 1333 def solve(x) res = 0 while x.prime?.! res += 1 x += 1 end if res > 0 res -= 1 end return res end y, x = gets.split.map(&:to_i) cnt = solve(y) + solve(x) puts ((cnt % 2 == 1) ? :First : :Second)