#include <iostream>
#include <string>
#include <algorithm>
int main() {
std::string userInput;
std::getline(std::cin, userInput);
const std::string charactersToRemove = "CAMBRIDGE";
for (char character : charactersToRemove) {
userInput.erase(std::remove(userInput.begin(), userInput.end(), character), userInput.end());
}
std::cout << userInput;
return 0;
}