Study Abroad Ban
Time limit1sMemory limit128 MB
Delete every character in a given uppercase word that appears in the letters of 'CAMBRIDGE' and print the rest.
- Level
Easy1 of 10
- Topics
- String, Implementation
- Solved
- No attempts yet
Problem
A small country has decided to censor words in outgoing email. For each word, every uppercase letter that appears in CAMBRIDGE is deleted. For example, LOVA becomes LOV because A is one of those letters.
Given one uppercase word, print the word that remains after this censorship.
Input
The first line contains one word made of uppercase English letters. The word length is at least 3 and at most 100.
Output
Print the result after deleting every letter from the input word that appears in CAMBRIDGE. The length of the correct output is always greater than 0.