uses crt;
var a,b,c:real;
kt:integer;
begin
clrscr;
write('Nhap a='); readln(a);
write('Nhap b='); readln(b);
write('Nhap c='); readln(c);
if (a+b>c) and (a+c>b) and (b+c>a) and (a>0) and (b>0) and (c>0) then
begin
kt:=0;
if sqr(a)=sqr(b)+sqr(c) then kt:=1;
if sqr(b)=sqr(a)+sqr(c) then kt:=1;
if sqr(c)=sqr(a)+sqr(b) then kt:=1;
if (a=b) and (a<>c) and (b<>c) then kt:=2;
if (b=c) and (b<>a) and (c<>a) then kt:=2;
if (c=a) and (c<>b) and (a<>b) then kt:=2;
if (a=b) and (b=c) then kt:=3;
if kt=0 then writeln('Day la tam giac thuong');
if kt=1 then writeln('Day la tam giac vuong');
if kt=2 then writeln('Day la tam giac can');
if kt=3 then writeln('Day la tam giac deu');
if (kt=1) and (kt=2) then writeln('Day la tam giac vuong can');
end
else writeln('Day khong la ba canh cua mot tam giac');
readln;
end.