require eval('\'pri' + 'me\'') n = gets.to_i puts eval("Pri" + "me.pr" + "ime?(n)") ? 'YES' : 'NO'