#include <iostream>
#include <string>
#include <locale>
#include <algorithm>

using namespace std;

int main() {
	string s1 = "How. aRe. yOu?";
	string s2 = "how are you";

	cout << "before:" << s1 << endl;
	s1.erase(remove_if(s1.begin(), s1.end(), static_cast<int(*)(int)>(ispunct)), s1.end());
	transform(s1.begin(), s1.end(), s1.begin(), static_cast<int(*)(int)>(tolower));
	cout << "after:" << s1 << endl;

	cout << boolalpha << (s1 == s2) << endl;
	return 0;
}