Any help regarded why the output section failed would be appreicated.
package com.codegym.task.task04.task0424;
/*
Three numbers
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader key = new BufferedReader(new InputStreamReader(System.in));
int [] a ={Integer.parseInt(key.readLine()) //fill integer with int keyboard input
};
for(int i=0;i<a.length-1;i++){ //scan through array
if(a[0] == a[1]){
System.out.print("3");
}
else if(a[0] == a[2]){
System.out.print("2");
}
else{
System.out.print("1");
}
}
}
}