https://www.acmicpc.net/problem/2753
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int year = sc.nextInt(); // ์ฐ๋๋ฅผ ์
๋ ฅ๋ฐ์
if(year % 4 == 0 && year % 100 != 0){ // 4์ ๋ฐฐ์์ด๊ณ 100์ ๋ฐฐ์๊ฐ ์๋ ๋
System.out.println("1");
}
else if(year % 400 == 0){ // 400์ ๋ฐฐ์์ผ ๋
System.out.println("1");
}
else {
System.out.println("0");
}
}
}