John,Mike,and Charles divide a pile of pennies. If the number of pennies in the pile is even, Mike will get half of the pile. If the number of pennies in the pile is odd, one penny will be given to Charles and John will get half of the pennies remaining in the pile. This process is repeated until the pile is gone. How many pennies will Mike receive if the original pile contains 2005 pennies?