My boolean expression is wrong but i cant fix it.I need help,Thanks.

package com.codegym.task.task04.task0414;
/*
Number of days in the year
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
//write your code here
//write your code here
BufferedReader reader= new BufferedReader(new InputStreamReader(System.in));
String input=reader.readLine();
int year=Integer.parseInt(input);
if (year%4==0 ) {
System.out.println("Number of days in the year: 366" );
}else if(year%400==0 && year%100==0){
System.out.println("Number of days in the year: 366" );
}
System.out.println("Number of days in the year: 365");
}
}

if1) if the year is evenly divisible by 400, then it is a leap year;else if2) for other years, if the year is evenly divisible by 100, then it is a regular year;else if3) for other years, if the year is evenly divisible by 4, then it is a leap year;else4) all remaining years are not leap years. Do not deviate from this and you will pass in no time.