2009 MB E350

battery went flat because I left ignition on
put a new battery in but no response
kept coming up with red colored car not in P
what do I do ?