Cassandra collected 5000 pennies for the charity drive. James collected 276 fewer pennies. How many pennies did they donate to charity?
Please reason step by step, and put your final answer within \boxed{}.
user