uses crt;
const fi='input.inp';
fo='ketqua.txt';
var f1,f2:text;
a,b:real;
begin
clrscr;
assign(f1,fi); reset(f1);
assign(f2,fo); rewrite(f2);
readln(f1,a,b);
writeln(a);
writeln(b);
writeln(f2,a);
writeln(f2,b);
close(f1);
close(f2);
readln;
end.