function isLeapYear(y) { if (y % 400 == 0) return true; if (y % 4 == 0) { if (y % 100 == 0) return false; return true; } return false; } function Main(input) { let N = parseInt(input.replace("\n", "")); console.log(isLeapYear(N) ? "Yes" : "No"); } Main(require("fs").readFileSync("/dev/stdin", "utf8"));