#include <iostream>
#include <algorithm>
int main()
{
std::string str = "shIrley";
std::for_each(str.begin(), str.end(),
[](char & c){ c = ::tolower(c); });
std::cout << str << std::endl;
std::string str2 = "yeLRIhs";
std::for_each(str2.begin(), str2.end(),
[](char & c){ c = ::toupper(c); });
std::cout << str2 << std::endl;
return 0;
}