#include <iostream>
using namespace std;

int main() {
	ifstream in[3];
    for (int i = 0; i < 3; i++)
    {
        in[i].open(this->Files.setFiles[sources[i]]);
        in[i].seekg(positions[sources[i]], ios::beg);
    }
    ofstream out;
    out.open(this->Files.setFiles[indexFileForMerge]);
    string s[3];
    while (true)
    {
        for (int i = 0; i < 3; i++)
        {
            cout << in[i].tellg() << ' ';
            getline(in[i], s[i]);
            cout <<  s[i].length() << ' ' << in[i].tellg() << '\n';
        }
	}
	return 0;
}