You don't need nested conditionals at all for this.
Hint: instead of trying to determine whether a given year is a leap year, try to determine the total number of leap days that came before it.