#include #include int main(){ constexpr const char a = 'a'; constexpr const char z = 'z'; constexpr const char A = 'A'; constexpr const char Z = 'Z'; constexpr const char to_capital = A - a; std::string S; std::cin >> S; for(char& c : S){ if(a <= c && c <= z){ c += to_capital; }else{ c -= to_capital; } } std::cout << S << std::endl; return 0; }