plz help
package com.codegym.task.task04.task0414;
/*
Number of days in the year
*/
import java.util.Scanner;
public class Solution {
public static void main(String[] args) throws Exception {
Scanner s = new Scanner(System.in);
int n = s.nextInt();
if( n%400 ==0)
System.out.println("Number of days in the year:366 ");
else if(n%100 ==0)
System.out.println("Number of days in the year:365 ");
else if(n%4 ==0)
System.out.println("Number of days in the year:366 ");
else
System.out.println("Number of days in the year:365"); //write your code here
}
}