For this Question: Given three distinct numbers a, b and c which denotes the age of three people 1, 2, 3.
Output the youngest and oldest person among three.Three integers are given as input. a, b, and c denotes the age of person 1, 2, 3 respectively.

<b>Constraints</b>
1 &le; a &le; 10<sup>5</sup>
1 &le; b &le; 10<sup>5</sup>
1 &le; c &le; 10<sup>5</sup>Print the youngest and the oldest person number respectivley.Sample Input:
12 11 7

Sample Output:
3 1

Explanation:
7 is the least among all three so 3 has the least age and similarly, 12 is the maximum among three so 1 is the oldest., 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,g;   // smallest and greatest
        
        if(a>b && a>c)
        g=1;
        else if(b>c && b>a)
        g=2;
        else
        g=3;
        
        if(a<b && a<c)
        s=1;
        else if(b<c && b<a)
        s=2;
        else
        s=3;
        
        System.out.print(s);
        System.out.println(" " +g);
    }
}, In this Programming Language: Java, Now tell me if this Code is compilable or not?