Help me out guysss
package com.codegym.task.task04.task0441;
/*
Somehow average
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
//write your code here
BufferedReader ob1 = new BufferedReader(new InputStreamReader(System.in));
String s = ob1.readLine();
String s1 = ob1.readLine();
String s2 = ob1.readLine();
int a = Integer.parseInt(s);
int b = Integer.parseInt(s1);
int c = Integer.parseInt(s2);
if(a == b || a==c )
{
System.out.println(a);
}
else if(b==c)
System.out.println(b);
else{
double m = (a+b+c)/3.0;
System.out.println(m);
}
}
}