package com.codegym.task.task04.task0415;
/*
Rule of the triangle
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
InputStream inputStream=System.in;
InputStreamReader inputStreamReader= new InputStreamReader(inputStream);
BufferedReader reader=new BufferedReader(inputStreamReader);
int a=Integer.parseInt(reader.readLine());
int b=Integer.parseInt(reader.readLine());
int c=Integer.parseInt(reader.readLine());
if ((a+b>c ||b+c>a || a+c>b ))
System.out.println("The triangle is possible.");
else if (a>b+c || b>a+c || c>a+b)
System.out.println("The triangle is not possible.");
else
System.out.println("The triangle is not possible.");
}
}

package com.codegym.task.task04.task0415;
/*
Rule of the triangle
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
InputStream inputStream=System.in;
InputStreamReader inputStreamReader= new InputStreamReader(inputStream);
BufferedReader reader=new BufferedReader(inputStreamReader);
int a=Integer.parseInt(reader.readLine());
int b=Integer.parseInt(reader.readLine());
int c=Integer.parseInt(reader.readLine());
if ((a+b>c ||b+c>a || a+c>b ))
System.out.println("The triangle is possible.");
else if (a>b+c || b>a+c || c>a+b)
System.out.println("The triangle is not possible.");
else
System.out.println("The triangle is not possible.");
}
}