Building triangles X49621


Statement
 

pdf   zip

html

Input

The input will be three different lines, one corresponding to each side of the triangle and containing a positive integer value. Assume that the three sides will be expressed with the same units.

Output

The output will print a single line. In case that the three sides can be used for building a triangle:     It is a triangle    

Otherwise the output will be:     It is NOT a triangle    

Public test cases
  • Input

    600
    900
    700
    

    Output

    It is a triangle
    
  • Input

    600
    900
    300
    

    Output

    It is NOT a triangle
    
  • Information
    Author
    HP CodeWars
    Language
    English
    Official solutions
    Python
    User solutions
    C C++ Haskell Java Python Rust