10930: ABC365 - A - Leap Year
[Creator : ]
Description
You are given an integer $Y$ between $1583$ and $2023$.
Find the number of days in the year $Y$ of the Gregorian calendar.
Within the given range, the year $Y$ has the following number of days:
- if $Y$ is not a multiple of $4$, then $365$ days;
- if $Y$ is a multiple of $4$ but not a multiple of $100$, then $366$ days;
- if $Y$ is a multiple of $100$ but not a multiple of $400$, then $365$ days;
- if $Y$ is a multiple of $400$, then $366$ days.
Find the number of days in the year $Y$ of the Gregorian calendar.
Within the given range, the year $Y$ has the following number of days:
- if $Y$ is not a multiple of $4$, then $365$ days;
- if $Y$ is a multiple of $4$ but not a multiple of $100$, then $366$ days;
- if $Y$ is a multiple of $100$ but not a multiple of $400$, then $365$ days;
- if $Y$ is a multiple of $400$, then $366$ days.
Input
The input is given from Standard Input in the following format:
```
$Y$
```
```
$Y$
```
Output
Print the number of days in the year $Y$ as an integer.
Constraints
- $Y$ is an integer between $1583$ and $2023$, inclusive.
Sample 1 Input
2023
Sample 1 Output
365
$2023$ is not a multiple of $4$, so it has $365$ days.
Sample 2 Input
1992
Sample 2 Output
366
$1992$ is a multiple of $4$ but not a multiple of $100$, so it has $366$ days.
Sample 3 Input
1800
Sample 3 Output
365
$1800$ is a multiple of $100$ but not a multiple of $400$, so it has $365$ days.
1600
366
$1600$ is a multiple of $400$, so it has $366$ days.