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