Everything is good but not verifying properly
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
BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
String s= buf.readLine();
int a = Integer.parseInt(s);
if (a % 4 == 0){
System.out.println("Number of days in the year: 366");
}
else if (a % 100 == 0){
System.out.println("Number of days in the year: 365");
}
else if ((a % 4 == 0) & (a % 400 == 0)){
System.out.println("Number of days in the year: 366");
}
else{
System.out.println("Number of days in the year: 365");
}
}
}