For this Question: Given three numbers A, B, C. The triplet is said to be a "good triplet" if the sum of any two numbers is equal to the third number.
Print 1 if the triplet is good, else print 0.Three integers are given as input. a, b, c.

<b>Constraints</b>
1 &le; a, b, c &le; 10<sup>4</sup>Print 1 if three numbers form a good triplet else print 0.Sample Input:
2 5 3

Sample Output:
1

Explanation:
sum of (2, 3) is 5., I have written this Solution Code: import java.util.Scanner;

public class Main
{
    public static void main(String args[]) {
        
        Scanner in = new Scanner(System.in);
        int a = in.nextInt();
        int b = in.nextInt();
        int c = in.nextInt();
        int s=0;
        int sum=(a+b+c);
        int maxi=Math.max(Math.max(a,b),c);
        int mini=Math.min(Math.min(a,b),c);
        int middle=sum-(maxi+mini);
        if(middle+mini==maxi)
        s=1;
        
        System.out.print(s);
        
    }
}, In this Programming Language: Java, Now tell me if this Code is compilable or not?