PRB5: Taking the (K)nots out of a String? // Beginner

 
Your friend, Steve, has recently started a babysitting service, however some of the children have begun to be more troublesome! Whenever answering a question they add several "not"s to their answers. Steve is easily confused, and usually loses track of the amount of "not"s in a statement. Can you write a program to help Steve simplify a statement?

Input Format

Given a String with one set of consecutive "not"s, such that there are less than 15 "not"s

Sample Input

Is there not not a movie on?

Output Format

A single String omitting the unnecessary "not"s from the given input String

Sample Output

Is there a movie on?




You must be logged in to submit a solution.