const lines = require('fs').readFileSync('/dev/stdin', 'utf-8') .trim().split(' ').values(); const N = Number(lines.next().value) if (N == 1) { console.log('NO'); return; } for (let i = 2; i <= Math.sqrt(N); i++) { if (N % i == 0) { console.log('YES'); return; } } console.log('NO');