COCI '12 Contest 1 #1 DOM

View as PDF

Submit solution


Points: 3
Time limit: 1.0s
Memory limit: 32M

Problem type

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 Ravnica1 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 Specification

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

Output Specification

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.

Sample Input 1

LOVA

Sample Output 1

LOV

Sample Input 2

KARIJERA

Sample Output 2

KJ

1In Croatian, "ravnica" means "plain" (noun – level terrain; in MTG, white mana land type)
2"Stay Forever"


Comments

There are no comments at the moment.