N = gets.to_i TWO = 'c'.ord - 'a'.ord def f(x) x < TWO || (TWO...x).any? { |n| (x % n).zero? } end if f(N) puts 'NO' else puts 'YES' end