PivotOJ

Baby Bites

시간 제한: 1000ms메모리 제한: 512MB출처: NCPC 2018BOJ 16316

문제

Arild just turned 1 year old, and is currently learning how to count. His favorite thing to count is how many mouthfuls he has in a meal: every time he gets a bite, he will count it by saying the number out loud.

Unfortunately, talking while having a mouthful sometimes causes Arild to mumble incomprehensibly, making it hard to know how far he has counted. Sometimes you even suspect he loses his count! You decide to write a program to determine whether Arild’s counting makes sense or not.

입력

The first line of input contains an integer n (1 ≤ n ≤ 1 000), the number of bites Arild receives. Then second line contains n space-separated words spoken by Arild, the i’th of which is either a non-negative integer ai (0 ≤ ai ≤ 10 000) or the string “mumble”.

출력

If Arild’s counting might make sense, print the string “makes sense”. Otherwise, print the string “something is fishy”.

예제

예제 1

입력
5
1 2 3 mumble 5
출력
makes sense

예제 2

입력
8
1 2 3 mumble mumble 7 mumble 8
출력
something is fishy

예제 3

입력
3
mumble mumble mumble
출력
makes sense
코드를 제출하려면 로그인하세요.