Excellent graduate school admission

Hello,

which factors are important for getting into an excellent graduate school (Harvard, Stanford, MIT) ? Which grades from which years do these universities require ? And does an outstanding undergraduate university (Cambridge / Imperial College) increase your chances to get in? What do grad schools want to see?

Thanks