#作业
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication2
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("请输入年份");
int year = Convert.ToInt32(Console.ReadLine());
bool b = (year % 400 == 0) || ((year % 4 == 0) && (year % 100 != 0));
Console.WriteLine(b);
Console.ReadKey();
}
}
}