p=*map(eval,open(0)),
print(max(~abs(q-r)*~(I-J)for I,q in p for J,r in p))