The R-rule for oysters is that you should only eat them inmonths that contain the letter R. Assuming that you like to getoysters on Saturday evenings with your friends write a program thatuses the year as an input to determine how many times in that yearyou can get an oyster dinner and make a list of those dates forthat year. Do this in a fully automated way and include aconsideration of leap-years. In other words use logical statementsto determine if the month has an R in it. Hint: my program is notthat long, less than 20 lines, but it uses a separate function thatI wrote called isleapyear, that is just a few lines. Also, Ichanged to format of datestr so that the month is fully spelledout. (Complete in MATLAB)