Не могу найти ошибку
package com.javarush.task.task04.task0441;
/*
Как-то средненько
*/
import java.io.BufferedReader ;
import java.io.InputStreamReader ;
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 x = Integer.parseInt(a) ;
int y = Integer.parseInt(b) ;
int z = Integer.parseInt(c) ;
boolean s =(x == y && y == z) ;
if (x > y && y < z && x < z) {
System.out.println(x) ;
}
else if (x > y && y < z && x > z) {
System.out.println(z) ;
}
else if (x < y && y > z && x > z) {
System.out.println(x) ;
}
else if (x < y && y > z && x < z) {
System.out.println(z) ;
}
else if (x < y && y < z) {
System.out.println(y) ;
}
else if (x > y && y > z) {
System.out.println(y) ;
}
else if (s = true ) {
System.out.println(x) ;
}
else if (x == y && x!= z || x == z && x!=y) {
System.out.println(x) ;
}
else if (y == z && z!=x ) {
System.out.println(z) ;
}
}
}