What is wrong in my code?. Maximum number is show, if there more then one max numbers it show only one
package pl.codegym.task.task04.task0419;
/*
Największa z czterech liczb
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int a = Integer.parseInt(br.readLine());
int b = Integer.parseInt(br.readLine());
int c = Integer.parseInt(br.readLine());
int d = Integer.parseInt(br.readLine());
int re=0;
if(a>b) re = a;
if(b>a) re = b;
if(re<c) re = c;
if(re<d) re = d;
System.out.println(re);
}
}