Discard the number of Master Balls needed to reach the Pokémon you want and then unload the Ultra Balls needed to reach the level. Press Select to receive 649 Master Balls and 100 Ultra Balls.
(Press R while moving) Hold down the R key after picking up a Pokemon to erase it completely. (Press L while moving) Hold L after picking up a Pokémon to make a perfectly identical copy of it.