class Main {
    public static void main(String[] args) {
       System.out.println(smallest(1, 3));
    }
    public static int smallest(int n1, int n2) {
        if (n1 < n2) return n1;
        else return n2;
    }
}

//https://pt.stackoverflow.com/q/457223/101