#include <iostream> using namespace std; #include <string> #include <sstream> #include <map> #include <cctype> int main() { string str1; string str2; getline(cin, str1); getline(cin, str2); map<char, char> keyMap; map<char, bool> word...