#include int main() { int N; std::cin >> N; bool is_leap_year = (N % 4 == 0) - (N % 100 == 0) + (N % 400 == 0); std::cout << (is_leap_year ? "Yes" : "No") << std::endl; return 0; }