AlgoUniversity
  • Go Back
Discussion
Days Of Week :

Author

Ayush Kumar Shaw

Difficulty Level : Easy

Submissions : 257

Asked In : Microsoft

Marks :10

: 3 | : 0

Given current day as the day of a week and an integer $$$k$$$, your task is to find the day of week after $$$k$$$ days.

Input

The first line contains a string - the current day in lowercase latin letters. The second line contains a single integer $$$k(0 \leq k \leq 10^{9})$$$.

Output

Output a single string - the answer to the problem(in lowercase latin letters).

Example

Input
monday
4
Output
friday

You need to login to view your submissions.

You need to login to view all submissions.

Loading...

Result : Executed

Loading...

Feel something is wrong with the test cases?

Result : Accepted

Test Cases :

You need to Log In
We're glad that you want to attempt this problem!

But to Run or Submit the Problem, you need to Log In.

Continue to Log In
Challenge Submitted!

Your challenge has been submitted successfully.

You will get a response soon via WhatsApp or Email.

Challenge
Facing issue while trying to solve the problem! Don't worry, we got you covered!

Do let us know your issue.

Looks good!
Please enter your issue / feedback.

How do we get in touch with you?
Looks good!
Please enter your phone no.
Looks good!
Please enter your email address.