Lời giải:
program hotrotinhoc;
const fi='integer.inp';
fo='integer.out';
var a,b,n: integer;
f: text;
procedure ip;
begin
assign(f,fi);
reset(f);
read(f,n);
close(f);
end;
procedure out;
begin
assign(f,fo);
rewrite(f);
writeln(f,trunc(n));
write(f,trunc(n)+1);
close(f);
BEGIN
ip;
out;
END.