require 'prime' Y, X = gets.split.map(&:to_i) y = Y + 1 x = X + 1 cnt = 0 until y.prime? y += 1 end until x.prime? x += 1 end cnt = (y + x) - (Y + X) - 2 if cnt.even? puts 'Second' else puts 'First' end