#include <iostream>
#include <string>

std::string Filter(const std::string &to, const std::string &remove)
{
    std::string final;
    for(std::string::const_iterator it = to.begin(); it != to.end(); ++it)
    {
        if(remove.find(*it) == std::string::npos)
        {
            final += *it;
        }
    }
    return final;
}

int main()
{
	std::string s;
	std::cout << "Enter some text: " << std::endl;
	std::getline(std::cin, s);
	std::cout << Filter(s, "'\\,<\".<") << std::endl;
}