#include #include #include #include using namespace std; int main() { SetConsoleCP(1251); SetConsoleOutputCP(1251); string str; getline(cin, str); str[0] = (str[0] >= -32 && str[0] <= 0 ? str[0] - 32 : toupper(str[0])); transform(str.begin() + 1, str.end(), str.begin() + 1, [](char ch) { if(int(ch) >= -64 && int(ch) <= -33) return ch + 32; return tolower(ch); }); cout << str; }