#include <iostream> #include <vector> using namespace std; int main() { int k1, k2, k3; string str = "", tempStr = ""; while (cin >> k1 >> k2 >> k3 && k1 && k2 && k3) { cin >> str; if (str ==...