import java.util.Scanner;

public final class rect {
        public static void main(String[] args) {
                Scanner s = new Scanner(System.in);
                int a = s.nextInt();
                int b = s.nextInt();
                int c = s.nextInt();
                int d = s.nextInt();

                int e = a*b;
                int f = c*d;

                System.out.println(Math.max(e,f));
        }
}
