solved Problem 19 using Python calendar library