#include <stdio.h>

int main() {
    int n;
    scanf("%d", &n);
    if (n % 4 == 0 && n % 100 != 0 || n % 400 == 0){
        printf("%d", 1);
    }else{
        printf("%d", 0);
    }
    
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: