'use strict'

const main = input => {
	const args = input.trim().split(' ').map(Number)
	const t1 = args[0] * args[1]
	const t2 = args[2] * args[3]
	if (t1 >= t2) console.log(t1)
	else console.log(t2)
}

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