Не проходит последнее условие
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 x=reader.readLine();
String y=reader.readLine();
String z=reader.readLine();
int a=Integer.parseInt(x);
int b=Integer.parseInt(y);
int c=Integer.parseInt(z);
if (a+b>c && a+b!=c || a+c>a && a+c!=b || b+c>a && b+c!=a){
System.out.println("Треугольник существует.");}
else System.out.println("Треугольник не существует.");
}
}