#include<bits/stdc++.h> using namespace std; int main() { string a,b; while(cin >> a >> b) { int s1 = a.length(); int s2 = b.length(); int i,j,k,p; int flag = 0; int q = 0; for(i = 0; i < s1; i++) { ...