Thirty days has September, April, June, and November;
All the rest have thirty-one except February alone which has twenty-eight;
Except on every fourth year, when it has 29;
Except on years divisible by 100, when it has 28 again;
Unless the year is also divisible by 1000, when it's back to 29.