Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a code in java about following problems: A known problem with some microphones is the hissing s. That is, sometimes the sound of the

Write a code in java about following problems:

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.

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

Input

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

Output

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

Sample Input 1 Sample Output 1
amiss 
hiss 
Sample Input 2 Sample Output 2
octopuses 
no hiss 
Sample Input 3 Sample Output 3
hiss 
hiss

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle 12c SQL

Authors: Joan Casteel

3rd edition

1305251032, 978-1305251038

More Books

Students also viewed these Databases questions

Question

Would you recommend this program to your employer? Why?

Answered: 1 week ago

Question

LO5 Highlight five external recruiting sources.

Answered: 1 week ago