def s_from_tuple(t):
    """Convert a card tuple into its corresponding name."""
    rank, suit = t
    if rank == 12:
        s = "Ace"
    elif rank == 11:
        s = "King"
    elif rank == 10:
        s = "Queen"
    elif rank == 9:
        s = "Jack"
    else:
        s = str(rank + 2)

    if suit == 0:
        s += " of Clubs"
    elif suit == 1:
        s += " of Diamonds"
    elif suit == 2:
        s += " of Hearts"
    elif suit == 3:
        s += " of Spades"
    return s