'use strict'

const main = input => {
	const args = input.trim().split(' ').map(Number)
	console.log(Math.max(args[0] * args[1], args[2] * args[3]))
}

main(require('fs').readFileSync('/dev/stdin', 'utf8'))
