/* 6Week 6th Period Practicum Problem 1.  Dr Brown's Solution */
#include <iostream>
using namespace std;

int main()
{
  // Read three lengths a, b and c
  char junk;
  int a, b, c;
  cin >> a >> junk >> b >> junk >> c >> junk;

  // Ensure that a is the largest length
  if (b > a)
  {
    int t = a;
    a = b;
    b = t;
  }
  if (c > a)
  {
    int t = a;
    a = c;
    c = t;
  }

  // check to make sure we've got a triangle
  if (a >= b + c)
    cout << "Not a triangle" << endl;
    
  // Determine type
  else
  {
    if (a*a < b*b + c*c)
      cout << "Scalene triangle" << endl;
    else if (a*a == b*b + c*c)
      cout << "Right triangle" << endl;
    else
      cout << "Obtuse triangle" << endl;
  }

  return 0;
}