A camel must travel 1000 km across a desert to the nearest city. She has 3000 bananas but can only carry 1000 at a time. For every km she walks, she needs to eat a banana. What is the maximum number of bananas she can transport to the city?