#abc365a. A - Leap Year

A - Leap Year

Score : 100100 points

问题陈述

给定一个介于 1583158320232023 之间的整数 YY

找出格里高利历法中 YY 年的天数。

在给定的范围内,年份 YY 有以下天数:

  • 如果 YY 不是 44 的倍数,则为 365365 天;

  • 如果 YY44 的倍数但不是 100100 的倍数,则为 366366 天;

  • 如果 YY100100 的倍数但不是 400400 的倍数,则为 365365 天;

  • 如果 YY400400 的倍数,则为 366366 天。

以上为大语言模型 kimi 翻译,仅供参考。

Problem Statement

You are given an integer YY between 15831583 and 20232023.

Find the number of days in the year YY of the Gregorian calendar.

Within the given range, the year YY has the following number of days:

  • if YY is not a multiple of 44, then 365365 days;

  • if YY is a multiple of 44 but not a multiple of 100100, then 366366 days;

  • if YY is a multiple of 100100 but not a multiple of 400400, then 365365 days;

  • if YY is a multiple of 400400, then 366366 days.

Constraints

  • YY is an integer between 15831583 and 20232023, inclusive.

Input

The input is given from Standard Input in the following format:

YY

Output

Print the number of days in the year YY as an integer.

Sample Input 1

2023

Sample Output 1

365

20232023 is not a multiple of 44, so it has 365365 days.

Sample Input 2

1992

Sample Output 2

366

19921992 is a multiple of 44 but not a multiple of 100100, so it has 366366 days.

Sample Input 3

1800

Sample Output 3

365

18001800 is a multiple of 100100 but not a multiple of 400400, so it has 365365 days.

Sample Input 4

1600

Sample Output 4

366

16001600 is a multiple of 400400, so it has 366366 days.