pls help
package com.codegym.task.task04.task0414;
/*
Number of days in the year
*/
import java.io.*;
import java.util.Scanner;
public class Solution {
public static void main(String[] args) throws Exception {
Scanner br = new Scanner(System.in);
String s = br.nextLine();
int x = Integer.parseInt(s);
if (x % 100 == 0){
x = 365;
}
else if (x % 400 == 0){
x = 366;
}
else if (x % 4 == 0){
x = 366;
}
else {
x = 365;
System.out.println("Number of days in the year: " + x);
}
}
}