"use strict";
const Main = (input) =>{
	let xs = input.trim().split(' ').map(v=>parseInt(v,10));
    let A = xs[0] * xs[1];
    let B = xs[2] * xs[3];
    
    if(A >= B){
       console.log(A);
    }else if(A <= B){
       console.log(B);
    }
    
}
Main(require('fs').readFileSync('/dev/stdin','utf8'));