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
        boolean check=false;
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        int a[] = new int[3];

        for (int i = 0; i < 3; i++)
        	a[i] = Integer.parseInt(reader.readLine());
	    int currentValue = a[0];
        int smallestIndex = 0;
        for (int j=1; j < 3; j++) {
            if (a[j] < currentValue) {
                currentValue = a[j];
                smallestIndex = j;
            }
        }
       for(int i=1;i<3;i++){
            if(a[i-1]==a[i]){
                check=true;
                break;
           }
       }
	    smallestIndex = smallestIndex+1;
	   if(check)
	      System.out.println(smallestIndex);

    }
}
whats wrong in my code.... it shows one error "The program should display the index of the number that is different from the others."