Memory Deluge (Foil) 2UU
Instant
Look at the top X cards of your library, where X is the amount of mana spent to cast this spell. Put two of them into your hand and the rest on the bottom of your library in a random order.

Flashback 5UU (You may cast this card from your graveyard for its flashback cost. Then exile it.)