Problem --
A particular month has 30 days, numbered from 1 to 30.
Day 1 is a Monday, and the usual 7-day week is followed.So day 2 is Tuesday, day 3 is Wednesday, and so on.
Every Saturday and Sunday is a holiday.
There are N festival days, which are...