#include <iostream> #include<algorithm> #include<vector> using namespace std; void print(string s,string s1,string s2) { int length=s.length(); int i=0; vector<string>strarray; while(i<length) { string cur=""; while(s[i]!=' '&a...