Try out the test case
monday tuesday 9 9
I think your output will be impossible but output should be 9
Refer editorial for more details
Try out the test case
monday tuesday 9 9
I think your output will be impossible but output should be 9
Refer editorial for more details