Write a function solution that, given a string S representing the day of the week and an integer K (between 0 and 500, inclusive), returns the days of the week that is K day