#include <iostream> #include <cstring> #include <algorithm> #include<string> #include<map> using namespace std; map<char, bool>heavy, light, equall, besides; int main() { for (int i = 0; i < 3; i++) { string str1, str2, op; cin >> str1...