import javax.swing.JOptionPane;
public class Proj8
{
public static void main(String[] args)
{
String input = JOptionPane.showInputDialog("Enter the year:");
int year = Integer.parseInt(input);
if(year%4 == 0)
{
System.out.println(year + " is a leap year.");
if(year%100 == 0)
{
System.out.println(year + " is not a leap year.");
if(year%400 == 0)
{
System.out.println(year + " is a leap year.");
}
}
}
else
{
System.out.println(year + " is not a leap year.");
}
}
}