// we have defined the necessary header files here for this problem. // If additional header files are needed in your program, please import here. #include<iostream> #include<string> #include<unordered_map> #include<vector> #include<algorithm> using namespace std; unord...