What is wrong here?
package pl.codegym.task.task04.task0418;
/*
Mniejsza z dwóch liczb
*/
import java.io.*;
import java.util.Scanner;
public class Solution {
public static void main(String[] args) throws Exception {
int a;
int b;
Scanner scan = new Scanner(System.in);
a = scan.nextInt();
b = scan.nextInt();
if (a<b){
System.out.println(a);
}
else {
System.out.println(b);
}
if (a==b){
System.out.println(b);
}
}
}