require 'prime' def solve(y, x) if y.prime? || x.prime? return true else ty = tx = 0 while ty == 0 || !y.prime? ty += 1 y += 1 end while tx == 0 || !x.prime? tx += 1 x += 1 end return (ty+tx-2).even? ? false : true end end y,x = gets.split.map(&:to_i) puts solve(y, x) ? "First" : "Second"