import java.util.Scanner;
/*
* 闰年的判断
*/
public class LeapYear {
public static void main(String[] args) {
System.out.println("请输入年份(例如:2014)");
while (true) {
Scanner yearScanner = new Scanner(System.in) ;
int yearInt = yearScanner.nextInt() ;
if(yearInt%4 == 0 && yearInt%100 != 0 || yearInt%400 == 0){
System.out.println(yearInt+"是闰年");
}else{
System.out.println(yearInt +"不是闰年");
}
}
}
}