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