[BOJ 15272] Hissing Microphone

View as PDF

Submit solution

Points: 1
Time limit: 1.0s
Memory limit: 512M

Problem type
Allowed languages
Assembly, Awk, C, C++, Java, Pascal, Perl, Python, Sed, Text

A known problem with some microphones is the “hissing s”. That is, sometimes the sound of the letter s is particularly pronounced; it stands out from the rest of the word in an unpleasant way.</p>

Of particular annoyance are words that contain the letter s twice in a row. Words like amiss, kiss, mississippi and even hiss itself.

입력 형식

The input contains a single string on a single line. This string consists of only lowercase letters (no spaces) and has between 1 and 30 characters.

출력 형식

Output a single line. If the input string contains two consecutive occurrences of the letter s, then output hiss. Otherwise, output no hiss.

예제 입력 1

amiss

예제 출력 1

hiss

예제 입력 2

octopuses

예제 출력 2

no hiss

Comments

There are no comments at the moment.