#include
using ll = long long;
using ld = long double;
#define yes cout << "YES" << "\n"</strong>
#define no cout << "NO" << "\n"</strong>
#define three cout << "Равносторонний"</strong>
#define two cout << "Равнобедренный"</strong>
#define one cout << "Разносторонний"</strong>
using namespace std;
bool exist(ll a, ll b, ll c){
return (a + b > c) && (a + c > b) && (b + c > a);
}
void type(ll a, ll b, ll c){
if(a == b && b == c)
three;
else if(a == b || b == c || a == c)
two;
else
one;
}
signed main() {
ll a,b,c;
cin >> a >> b >> c;
if(exist(a,b,c)){
yes;
type(a,b,c);
} else
no;
}