Merging the Fair and Square and Erdos-Szekeres problems.