Why it's not working? :(
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 reader = new BufferedReader(new InputStreamReader (System.in));
String a1 = reader.readLine();
int a = Integer.parseInt(a1);
String b1 = reader.readLine();
int b = Integer.parseInt(b1);
String c1 = reader.readLine();
int c = Integer.parseInt(c1);
if ( a == b && a != c)
System.out.println(2);
else if (a == c && a != b)
System.out.println(1);
else if(b == c && a != c)
System.out.println(0);
}
}