#include <iostream>
using namespace std;
int main()
{
int a,b,c,kt;
cout<<"Nhap a=";
cin>>a;
cout<<"Nhap b=";
cin>>b;
cout<<"Nhap c=";
cin>>c;
if ((a>0) and (b>0) and (c>0) and (a+b>c) and (a+c>b) and (b+c>a))
{
kt=0;
if (a*a==b*b+c*c) kt=1;
if (b*b==a*a+c*c) kt=1;
if (c*c==a*a+b*b) kt=1;
if ((a==b) and ((a<c) or (a>c)) and ((b<c) or (b>c))) kt=2;
if ((b==c) and ((b<a) or (b>a)) and ((c<a) or (c>a))) kt=2;
if ((c==a) and ((c<b) or (c>b)) and ((a<b) or (a>b))) kt=2;
if ((a==c) and (b==c)) kt=3;
if (kt==0) cout<<"Day la tam giac thuong";
if (kt==1) cout<<"Day la tam giac vuong";
if (kt==2) cout<<"Day la tam giac can";
if (kt==3) cout<<"Day la tam giac deu";
if ((kt==1) and (kt==2) ) cout<<"Day la tam giac vuong can";
}
else cout<<"Day khong la ba canh trong mot tam giac";
return 0;
}