first three painter problems