var x,y,a,b:real; begin readln(x,a,b); if (x>=10) then y:=x+a/b else y:=x*x+5; writeln(y); end.