#include <stdio.h>

int main() {
    int a,res;
    scanf("%d",&a);
    res = (a%4==0 && (a%100!=0 || a%400==0)) ? 1 : 0;
    printf("%d",res);
    return 0;
}

Embed on website

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