#32Easy
Days in a year
Time: 1 s · Memory: 256 MB
- Conditionals
Statement
You are given a year . Find how many days it has: a leap year has days, an ordinary year has .
The leap year rule: a year divisible by is a leap year, but among years divisible by only those also divisible by are leap years. For example, and are not leap years, and are.
Input format
A single integer ().
Output format
A single number: or .
Examples
Input
2000
Output
366
Input
1900
Output
365
Note
The rule fits in one expression: ( divisible by and not by ) or divisible by .
