[+1]: Look at the top two cards of your library. Put one of them into your graveyard.
[−3]: Return another target nonland permanent to its owner's hand.
[−8]: Each player shuffles their hand and graveyard into their library. You draw seven cards.
If a player has no cards in their hand and no cards in their graveyard when the third ability resolves, that player won’t shuffle their library.
When the first ability resolves, the card you don’t put into your graveyard stays on top of your library.