import calendar
def getWorkDay(year_month,day):
# print(year_month.split("-"))
firstweekday = calendar.monthrange(int(year_month.split("-")[0]),
int(year_month.split("-")[1]))[0]
result = ""
rdate = 0
tmp = 0
if firstweekday < 5:
tmp = (day + firstweekday - 1) / 5
rdate = day + 2 * int(tmp)
else:
tmp = (day + firstweekday - 6) / 5
rdate = day + 2 * int(tmp) + (7-firstweekday)
if rdate < 10:
result = "0"+str(rdate)
else:
result = str(rdate)
return f"{year_month}-{result}"