https://www.acmicpc.net/problem/2753
using System;
namespace baekjoon
{
class Program
{
static void Main(string[] args)
{
// 연도 입력받고, 정수형으로 바꿔주기
string strInput = Console.ReadLine();
int nNum = int.Parse(strInput);
// 연도가 4의 배수이면서, 100의 배수가 아닐 때 또는 400의 배수이면 윤년이다.
// 윤년이면 1, 아니면 0을 출력.
if (nNum % 4 == 0 && nNum % 100 != 0 || nNum % 400 == 0)
{
Console.WriteLine("1");
}
else
{
Console.WriteLine("0");
}
}
}
}