#include<stdio.h> int main(void) { long year=2004,n=0; for(year+=4;n<10000;year+=4) { if(year%400==0 || (year%4==0 && year%100!=0)) { n++; } } printf("%ld\n\n",year-4); return 0; }