import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int A = sc.nextInt();
if ((A % 4 == 0 && A % 100 != 0) || (A % 4 == 0 && A % 400 == 0))
System.out.println("1");
else
System.out.println("0");
}
}
'일상' 카테고리의 다른 글
2884 : 알람 시계 (0) | 2021.07.23 |
---|---|
14681 : 사분면 고르기 (0) | 2021.07.23 |
9498 : 시험 성적 (0) | 2021.07.23 |
1330 : 두 수 비교하기 (0) | 2021.07.23 |
10998 : A * B (0) | 2021.07.23 |