public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String a = reader.readLine();
String b = reader.readLine();
String c = reader.readLine();
int aa = Integer.parseInt(a);
int bb = Integer.parseInt(b);
int cc = Integer.parseInt(c);
if ((aa + bb)> cc && (aa+bb) > bb && (bb+cc)>aa ){
System.out.println("Треугольник существует.");
}
if ((aa + bb) <= cc && (aa+bb) <= bb && (bb+cc) <=aa ){
System.out.println("Треугольник не существует.");
}
}
}
package com.javarush.task.task04.task0415;
/*
Правило треугольника
*/
import java.io.*;
import java.util.*;
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String a = reader.readLine();
String b = reader.readLine();
String c = reader.readLine();
int aa = Integer.parseInt(a);
int bb = Integer.parseInt(b);
int cc = Integer.parseInt(c);
if ((aa + bb)> cc && (aa+bb) > bb && (bb+cc)>aa ){
System.out.println("Треугольник существует.");
}
if ((aa + bb) <= cc && (aa+bb) <= bb && (bb+cc) <=aa ){
System.out.println("Треугольник не существует.");
}
}
}