program dlb;
var
x,y: real;
begin
readln(x);
if x > 9 then
y := 5 * sqr(x);
if x = 9 then
y := 2 * sqrt(x);
if x < 9 then
y := abs(4+x);
write(y);
end.
program dlb;
var
x,y: real;
begin
readln(x);
if x > 9 then
y := 5 * sqr(x);
if x = 9 then
y := 2 * sqrt(x);
if x < 9 then
y := abs(4+x);
write(y);
end.