SAC '22 Code Challenge 3 Junior P1 - Normal Problem

View as PDF

Submit solution


Points: 3 (partial)
Time limit: 1.0s
Memory limit: 256M

Author:
Problem type

Max has a crisis: he has not mentioned Mr. DeMello once in this contest!

Since this is a massive issue, Max begs you to check if he has mentioned him.

He will give you a string of lowercase letters S (a sentence from the contest) and ask you to detect if demello is in the string.

If demello is in the string, output liar; otherwise, output what are we going to do?.

Can you help Max fix his contest?

Constraints

1 \le |S| \le 10^5

S will only contain lowercase letters.

Note that |S| denotes the length of string S.

Subtask 1 [50%]

S will contain demello.

Subtask 2 [50%]

No additional constraints.

Input Specification

The first line will contain S, the string to check for the presence of demello.

Output Specification

If demello is in the string, output liar; otherwise, output what are we going to do?.

Sample Input 1

testtestdemellotest

Sample Output 1

liar

Sample Input 2

no

Sample Output 2

what are we going to do?

Comments

There are no comments at the moment.