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 += x - X - 1 if not Y.prime? cnt += y - Y - 1 if not X.prime? if cnt.even? puts 'Second' else puts 'First' end