Task 5. (5 points) On a new website, 2000 users have registered. Each of them invited 1000 (of the registered users) to become friends. Two people become friends only if each of them has invited the other. What is the minimum number of friend pairs on the site?