For this Question: Given A, B, and C as the sides of a triangle, find whether the triangle is scalene. It is guaranteed that the sides represent a valid triangle.
Note: A triangle is said to be scalene if all three sides of the triangle are distinct.The first line of input consists of three space- separated integers A, B, and C — the length of the three sides of the triangle.

<b>Constraints :</b>
1 &le; A &le; B &le; C &le; 10Output on a new line, YES, if the triangle is scalene, and NO otherwise.Sample Input:-
2 3 4
Sample Output:-
YES

Sample Input:-
1 2 2
Sample Output:-
NO, I have written this Solution Code: import java.util.*;
import java.lang.*;
import java.io.*;
class Solution {

    
    public void Solve(int a,int b,int c) {
             if(a!=b && b!=c) 
             System.out.println("YES");
             
               else
                 System.out.println("NO");
          
    }
    
}
class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
		//StringBuilder sss = new StringBuilder("");
		Scanner sc=new Scanner(System.in);
	     int n=sc.nextInt();
          assert(n >= 1 && n <= 10);
          int m=sc.nextInt();
          assert(m >= 1 && m <= 10);
          int o=sc.nextInt();
          assert(o >= 1 && o <= 10);
       
		Solution obj=new Solution();
		obj.Solve(n,m,o);
	     
	}
}

 , In this Programming Language: Java, Now tell me if this Code is compilable or not?