#include <iostream> #include <string> #include <map> using namespace std; int main(){ string s1,s2,res; while(cin >> s1 >> s2){ &nb...