Last condition not meeting. I can't figure it out.
Thank you.
package com.codegym.task.task04.task0424;
/*
Three numbers
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
//write your code here
BufferedReader a = new BufferedReader(new InputStreamReader(System.in));
int b = Integer.parseInt(a.readLine());
int c = Integer.parseInt(a.readLine());
int d = Integer.parseInt(a.readLine());
if (b != c && b != d && c != d)
System.out.println();
else if (b != c && b != d)
System.out.println(1);
else if (c != d && b == d)
System.out.println(2);
else
System.out.println(3);
}
}