A Simple Proof of a Theorem of Erdös and Szekeres