#include <iostream>#include <string>#include <map>#include <vector>#include <algorithm>using namespace std;int main() { string str = ""; map<char, int>&n...