题目描述
Problem Description
Given an integer $ Y $ between $ 1583 $ and $ 2023 $ inclusive.
Determine the number of days in the year $ Y $ AD.
Within the given constraints, the number of days in the year $ Y $ AD is as follows:
- If $ Y $ is not a multiple of $ 4 $, the year has $ 365 $ days.
- If $ Y $ is a multiple of $ 4 $ but not a multiple of $ 100 $, the year has $ 366 $ days.
- If $ Y $ is a multiple of $ 100 $ but not a multiple of $ 400 $, the year has $ 365 $ days.
- If $ Y $ is a multiple of $ 400 $, the year has $ 366 $ days.
Input Format
The input is given from the standard input in the following format:
$ Y $
Output Format
Output the number of days in the year $ Y $ AD as an integer.
Sample Input and Output
Sample Input #1
2023
Sample Output #1
365
Sample Input #2
1992
Sample Output #2
366
Sample Input #3
1800
Sample Output #3
365
Sample Input #4
1600
Sample Output #4
366
Notes/Hints
Constraints
- $ Y $ is an integer between $ 1583 $ and $ 2023 $ inclusive.
Sample Explanation 1
$ 2023 $ is not a multiple of $ 4 $, so it has $ 365 $ days.
Sample Explanation 2
$ 1992 $ is a multiple of $ 4 $ but not a multiple of $ 100 $, so it has $ 366 $ days.
Sample Explanation 3
$ 1800 $ is a multiple of $ 100 $ but not a multiple of $ 400 $, so it has $ 365 $ days.
Sample Explanation 4
$ 1600 $ is a multiple of $ 400 $, so it has $ 366 $ days.
输入格式
见题面 Input 部分
输出格式
见题面 Output 部分
样例输入
2023
样例输出
365