var i    : integer;
    f2   : text;
    f    : file of integer;
    name : string;
begin
  if ParamCount = 1 then begin
  name := paramstr(1);
  Delete(name,length(name)-2,3);
  Assign(F,name+'dat');
  Reset(f);
  Assign(F2,name+'txt');
  ReWrite(f2);
  repeat
    Read(F,i);
    Write(F2,i:8);
  until EOF(F);
  close(F);
  Close(F2);
  end;
end.