program v;
var x: real;
begin
write('x = ');
readln(x);
writeln('x^2-7x+10/x^2-8x+12 = ',sqr(x)-7*x+10/(x*x)-8*x+12)
end.
program v;
var x: real;
begin
write('x = ');
readln(x);
writeln('x^2-7x+10/x^2-8x+12 = ',sqr(x)-7*x+10/(x*x)-8*x+12)
end.