Main(require("fs").readFileSync("/dev/stdin", "utf8")); function Main(input) { const n = parseInt(input); const r = n % 8; console.log(r==7||r==0?"Yes":"No"); }