Program HOC24;
const fi='tep1.int';
fo='tep2.out';
var max,min,a,b,c: integer;
f:text;
procedure ip;
begin
assign(f,fii);
reset(f);
read(f,a,b,c);
close(f);
end;
procedure out;
begin
assign(f,fo);
rewrite(f);
max:=a; min:=a;
if b>max then max:=b;
if c>max then max:=c;
if b<min then min:=b;
if c<min then min:=c;
writeln(f,'Gia tri lon nhat la : ',max);
write(f,'Gia tri nho nhat la : ',min);
close(f);
end;
begin
ip;
out;
end.