create function aa(a int,b int,c int) returns int
begin
declare max int;
set max=a;
if max<b then
set max=b;
end if;
if max<c then
set max=c;
end if;
return max;
end;
select aa(52,99,999)