'use strict'
function Main(input) {
  const ar = input.split("\n").map(x => x.split(" "));
  const X = Number(ar[0]);

  const ans = [3, 5, 7].includes(X) ? "Yes" : "No";
  console.log(ans)
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));