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 sc = new Scanner(System.in); int x = sc.nextInt(); if(x % 400 == 0 && x % 4 == 0){ System.out.println("Number of days in the year: 366"); } else if((x % 100) == 0){ System.out.println("Number of days in the year: 365"); } else { System.out.println("Number of days in the year: 365"); } } }