Is my math correct, or too complicated or something?
package com.codegym.task.task04.task0415;
/*
Rule of the triangle
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String one = reader.readLine();
String two = reader.readLine();
String three = reader.readLine();
int A = Integer.parseInt(one);
int B = Integer.parseInt(two);
int C = Integer.parseInt(three);
int addedAB = A + B;
int addedBC = B + C;
int addedAC = A + C;
if (addedAB > C || addedBC > A || addedAC > B) {
System.out.println("The triangle is possible.");
} else if (addedAB < C || addedBC < A || addedAC < B) {
System.out.println("The triangle is not possible.");
} else if (addedAB == C || addedBC == A || addedAC == B) {
System.out.println("The triangle is not possible.");
}
}
}