proszę o poradę
package pl.codegym.task.task04.task0414;
/*
Liczba dni w roku
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
//tutaj wpisz swój kod
BufferedReader reader=new BufferedReader(new InputStreamReader(System.in));
String srok= reader.readLine();
int rok=Integer.parseInt(srok);
int x;
if (rok %400==0)
{
int x = 366;
System.out.println("Liczba dni w roku: "+ x );
}
else if (rok %100==0)
int x = 365;
System.out.println("Liczba dni w roku: "+x);
else if (rok %4==0)
{
int x = 366;
System.out.println("Liczba dni w roku: "+x);
}
else if (rok%100==0 && rok%4==0)
{
int x = 365;
System.out.println("Liczba dni w roku: "+x);
}
else if (rok%400==0 && rok%100==0)
{
int x = 366;
System.out.println("Liczba dni w roku: "+x);
}
else if (rok==2100 || rok==2200 || rok==2300)
{
int x = 365;
System.out.println("Liczba dni w roku: "+x);
}
}
}