If you have 140 stone blocks, you can build an Egyptian square pyramid whose base has 7 blocks on each side. At the same time, you can arrange those blocks into 35 perfect 2 × 2 squares. Find a positive integer value of $n > 1000$ for which 35 perfect $n \times n$ squares can also be arranged into an Egyptian square pyramid.