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 reader = new BufferedReader(new InputStreamReader(System.in)); String stryr= reader.readLine(); int yr = Integer.parseInt(stryr); if (yr%4==0 && yr%100!=0) System.out.println("Number of days in the year : 366 "); if (yr%4==0 && yr%100==0) System.out.println("Number of days in the year : 365"); if(yr%100==0 && yr%400!=0) System.out.println("Number of days in the year : 365"); } }