require z='p'<<'rime';puts gets.to_i.send(z<<'?')?:YES: :NO