#include <iostream> #include <sstream> #include <map> #include <queue> using namespace std; int main() { int i = 0, j; string line, tmp; map<string, int> m; // [string, count] queue<string> q; while(getline(cin, line)) { stringstream...