//Jerry Zhao
//February 4, 2020
//Sr5
//Enloe
//Potter
#include
#include
#include
#include
#include
using namespace std;
int acsl = 0;
//ifstream fin("E:\\CodeBlocks 13\\CB Workspace\\inputfiles\\acsl1.txt");
ifstream fin("F:\\2srtest.txt");
string convert(string x)
{
    string y = "";
    for(int i = 0; i= 65 && x[i] <= 90)
            y+=x[i];
        else if(x[i] >= 97 && x[i] <= 122)
            y+= (char)(x[i]-32);
    }
    return y;
}
bool compare(string a, string b)
{
    for(int k = 0; k b[k])
            return false;
    }
    return false;
}
string common(string a, string b)
{
    string maxstring = "";
    for(int i = 0; i maxstring.length() || j >= maxstring.length() && compare(temp, maxstring))
                    maxstring = temp;
            }
        }
    }
    return maxstring;
}
void split(string a, string b)
{
    string temp = common(a, b);
    if(temp == "")
        return;
    acsl += temp.length();
    split(a.substr(0, a.find(temp)), b.substr(0, b.find(temp)));
    split(a.substr(a.find(temp)+temp.length(), a.size()-a.find(temp)-temp.length()),
          b.substr(b.find(temp)+temp.length(), b.size()-b.find(temp)-temp.length()));
}
int main()
{
    string a, b, c, d;
    for(int thicc = 0; thicc < 5; thicc ++)
    {
        acsl = 0;
        getline(fin, a); getline(fin, b);
        c = convert(a); d = convert(b);
        split(c, d);
        cout<