import numpy.random as r


class Deck:
    cards = []

    def draw(self):
        return self.cards.pop()

    def take_bottom_card(self):
        return self.cards.pop(0)

    def add_card_to_top(self, card):
        self.cards.append(card)

    def add_card_to_bottom(self, card):
        self.cards.insert(0, card)

    def shuffle(self):
        r.shuffle(self.cards)

1f9bd7989700b8d24b61e04d5d4212f5a36eba35
<mask token>


class Deck:
    <mask token>

    def draw(self):
        return self.cards.pop()
    <mask token>

    def add_card_to_top(self, card):
        self.cards.append(card)

    def add_card_to_bottom(self, card):
        self.cards.insert(0, card)
    <mask token>

<mask token>


class Deck:
    <mask token>

    def draw(self):
        return self.cards.pop()

    def take_bottom_card(self):
        return self.cards.pop(0)

    def add_card_to_top(self, card):
        self.cards.append(card)

    def add_card_to_bottom(self, card):
        self.cards.insert(0, card)

    def shuffle(self):
        r.shuffle(self.cards)

<mask token>


class Deck:
    cards = []

    def draw(self):
        return self.cards.pop()

    def take_bottom_card(self):
        return self.cards.pop(0)

    def add_card_to_top(self, card):
        self.cards.append(card)

    def add_card_to_bottom(self, card):
        self.cards.insert(0, card)

    def shuffle(self):
        r.shuffle(self.cards)

import numpy.random as r


class Deck:
    cards = []

    def draw(self):
        return self.cards.pop()

    def take_bottom_card(self):
        return self.cards.pop(0)

    def add_card_to_top(self, card):
        self.cards.append(card)

    def add_card_to_bottom(self, card):
        self.cards.insert(0, card)

    def shuffle(self):
        r.shuffle(self.cards)
