#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;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3RyaW5nPgoKc3RkOjpzdHJpbmcgRmlsdGVyKGNvbnN0IHN0ZDo6c3RyaW5nICZ0bywgY29uc3Qgc3RkOjpzdHJpbmcgJnJlbW92ZSkKewogICAgc3RkOjpzdHJpbmcgZmluYWw7CiAgICBmb3Ioc3RkOjpzdHJpbmc6OmNvbnN0X2l0ZXJhdG9yIGl0ID0gdG8uYmVnaW4oKTsgaXQgIT0gdG8uZW5kKCk7ICsraXQpCiAgICB7CiAgICAgICAgaWYocmVtb3ZlLmZpbmQoKml0KSA9PSBzdGQ6OnN0cmluZzo6bnBvcykKICAgICAgICB7CiAgICAgICAgICAgIGZpbmFsICs9ICppdDsKICAgICAgICB9CiAgICB9CiAgICByZXR1cm4gZmluYWw7Cn0KCmludCBtYWluKCkKewoJc3RkOjpzdHJpbmcgczsKCXN0ZDo6Y291dCA8PCAiRW50ZXIgc29tZSB0ZXh0OiAiIDw8IHN0ZDo6ZW5kbDsKCXN0ZDo6Z2V0bGluZShzdGQ6OmNpbiwgcyk7CglzdGQ6OmNvdXQgPDwgRmlsdGVyKHMsICInXFwsPFwiLjwiKSA8PCBzdGQ6OmVuZGw7Cn0=