#include #include #include #include int main() { std::string S; std::cin >> S; std::ranges::sort(S, {}, [](char c) { if (c == 'T') return 0; if (c == 'C') return 1; if (c == 'P') return 2; std::unreachable(); }); }