#include<stdio.h>
int run_year(int x)
{
if (x % 4 == 0 && x % 100 != 0 || x % 400 == 0)
{
return 1;
}
else
{
return 0;
}
}
int main()
{
int i = 0;
for (i = 1000;i <= 2022;i++)
{
if (1 == run_year(i))
{
printf(" year = %d\n",i);
}
}
return 0;
}