Dr. Anne Anderson Coding Contest 1 P1 - Due Dates

View as PDF

Submit solution

Points: 3
Time limit: 1.0s
Memory limit: 256M

Author:
Problem types

Mr. Hager is teaching Computer Science. It's currently the N-th day of the school year, and he created an assignment that's due on the M-th day of the school year.

Unfortunately, he noticed that his class gets stressed out very easily. If his assignment is due today or tomorrow, his students are stressed. If it's due later than that, his students are feeling okay. If the assignment's due date already passed, then it has been handed in and his students are feeling relaxed.

Mr. Hager wants to know how his students are feeling on a given day, as teachers should. You're a diligent Computer Science student, so he asks you to write a program to help him.

Constraints

1N,M300

Input Specification

The first line of input will contain the integer N.

The second line of input will contain the integer M.

Output Specification

The output will consist of one line: stressed if the students are stressed, okay if the students are feeling okay, or relaxed if the students are feeling relaxed.

Sample Input 1

Copy
3
4

Sample Output 1

Copy
stressed

Explanation for Sample 1

It's currently day 3, and Mr. Hager has an assignment that's due on day 4. As the assignment is due tomorrow, the students are stressed.

Sample Input 2

Copy
28
3

Sample Output 2

Copy
relaxed

Explanation for Sample 2

It's currently day 28, and Mr. Hager has an assignment that's due on day 3. As the assignment's due date has already passed, the students are feeling relaxed.

Sample Input 3

Copy
99
200

Sample Output 3

Copy
okay

Explanation for Sample 3

It's currently day 99, and Mr. Hager has an assignment that's due on day 200. As the assignment's due date is after tomorrow, the students are feeling okay.


Comments

There are no comments at the moment.