The task has been submitted successfully But I think there is one flaw in condition check When entered equal numbers say eg.555, 666, 10,10,10 It is giving 3 as ordinal number in such case in the following code. But it should not be. How to get exit without any output if all numbers are equal as its happening in case if all the 3 numbers are unique eg. 123, 456,
package com.codegym.task.task04.task0424;

Three numbers

public class Solution {
    public static void main(String[] args) throws Exception {
        //write your code here
        BufferedReader reader = new BufferedReader(new InputStreamReader(;
        int num1 = Integer.parseInt(reader.readLine());
        int num2 = Integer.parseInt(reader.readLine());
        int num3 = Integer.parseInt(reader.readLine());
        else if (num2==num3)
        else if(num1==num3)