Reveal the top three cards of your library and put one of them into your hand. You gain life equal to that card's mana value. Put all other cards revealed this way into your graveyard.
If a card in a player’s library has in its mana cost, X is considered to be 0.