import java.util.*;
import java.lang.*;
import java.io.*;

class Main {
    public static int solve(int weight0, int weight1, int weight2){
        if(weight0 >= weight1 && weight0 >= weight2)
            return 0;
        else if(weight1 >= weight0 && weight1 >= weight2)
            return 1;
        else 
            return 2;
    }
    
    public static void main(String[] args) {
        System.out.println(solve(100,150,200)); 
    }
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: