Problem list
Log in
#coci00232 · COCI 2012/2013 Contest 1

Dom

Bronze II 1.0 s 32 MB

In a small country far, far away, all the best and brightest high schoolers apply to universities abroad (even further away). The exact cause is always different and hard to find. Of course, the country's leaders aren't happy about that since they care deeply about their gifted (read profitable) youth. That's why the Education Ministry has started research into various subliminal messages to coax high schoolers into staying in their homeland. Their first try was handing out booster packs for the recent Magic: The Gathering expansion known as Return to Ravnica^{1} as competition prizes. Then they started to play Tony Cetinski's song “Ostani zauvijek”^{2} on math radio all the time. Finally, there is this task! Given a word, remove from it all letters contained in the word CAMBRIDGE.

Input

The first and only line of input contains a single word consisting of at least 3 and at most 100 uppercase English letters.

Output

The first and only line of output should contain the word obtained by removing all the letters in CAMBRIDGE from the given word. Test data will ensure that the solution contains at least one letter.

Example 1

Input
LOVA
Output
LOV

Example 2

Input
KARIJERA
Output
KJ

1
In Croatian, “ravnica” means “plain” (noun – level terrain; in MTG, white mana land type)
2
“Stay Forever”
Source
COCI 2012/2013 Contest 1
Appears in
Not part of a ladder, contest or set yet.
Accepted 0 Submissions 0 Acceptance 0% Solvers 0

Discussion

Threads about this problem. Spoilers are collapsed; wrap hints in ||double bars||.

No discussion yet. Start a thread if something here needs explaining.

Recent submissions Open with filters
Code