require 'prime' a, b = gets.split.map &:to_i puts b.prime_division.any? { |x, y| x != 2 && x != 5 } ? 'Yes' : 'No'