Why is my result wrong
package zh.codegym.task.task04.task0424;
/*
三个数字
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader io = new BufferedReader(new InputStreamReader(System.in));
int a = Integer.parseInt(io.readLine());
int b = Integer.parseInt(io.readLine());
int c = Integer.parseInt(io.readLine());
if (a!=b && a!=c){
System.out.print(1);
}
else if (b!=a && b!=c){
System.out.print(2);
}
else if (c!=a && c!=b){
System.out.print(3);
}
else if (a!=b && b!=c && a!=c){}
else{}
}
}