import java.util.Scanner;



public class LeapYear {

  public static void main(String args[]) {

    // Create a Scanner
    Scanner scanner = new Scanner(System.in);



    // Get input
    System.out.print("Enter a year: ");

    int year = scanner.nextInt();



    // Check if the year is a leap year
    boolean isLeapYear =

      (year % 4 == 0 && year % 100 != 0) || (year % 400 == 0);



    // Display the result in a message dialog box
    System.out.println(year + " is a leap year? " + isLeapYear);

  }

}