Var
input1, input2, output : Text;
i, number : integer;
begin
AssignFile(input1, 'input1.txt');
AssignFile(input2, 'input2.txt');
AssignFile(output, 'output.txt');
Reset(input1);
Reset(input2);
Rewrite(output);
for i := 1 to 10 do
begin
read(input1, number);
write(output, number, ' ');
read(input2, number);
write(output, number, ' ');
end;
CloseFile(input1);
CloseFile(input2);
CloseFile(output);
writeln('Готово');
end.