import enum

class Color(enum.Enum):
    RED = enum.auto()
    GREEN = enum.auto()
    YELLOW = enum.auto()
    BLUE = enum.auto()

class Value(enum.Enum):
    ZERO = 1
    ONE = 1
    TWO = 2
    THREE = 2
    FOUR = 2
    FIVE = 2
    SIX = 2
    SEVEN = 2
    EIGHT = 2
    NINE = 2

class Card:
    def __init__(self, color: Color, value: Value):
        self.color = color
        self.value = value

    def color(self):
        return self._suite
    
    def value(self):
        return self._value

    def color(self, color: Color):
        if color not in Color:
            raise Exception
        self._color = color
    
    def color(self, value: Value):
        if value not in Value:
            raise Exception
        self._value = value

    def __repr__(self):
        return f"<Card {self.value} of {self.color}>"

class Deck:
    def __init__(self):
        self.cards = [Card(s, v) for s in Color for v in Value]

    def __repr__(self):
        output = [f"{c}\n" for c in self.cards]
        return "".join(output)

print(Deck())