import java.util.Scanner;
public class CheckLeapYear1 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.println("Enter the Year to be checked");
int Year = sc.nextInt();
System.out.println(LeapYear(Year));
if (LeapYear(Year) == true) {
System.out.println("The year " + Year + " " + "is a leap Year.");
} else {
System.out.println("The year " + Year + " " + "is a normal year.(Not a leap Year)");
}
}
public static boolean LeapYear(int Year) {
boolean a = (Year % 4) == 0;
boolean b = (Year % 100) != 0;
boolean c = (Year % 400 == 0);
return a && b || c;
}
}