2009 MB E350

Mercedes » E-Class » 2003-2009
Question

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 ?