#include <iostream>
#include <fstream>
#include <string>
using namespace std;
int main()
{
string i, q;
ifstream z("onefile.txt"), d("twofile.txt");
while (getline(z, i) && getline(d, q))
{
if (i != q)
cout << i << endl << q << endl;
}
}