class Letter:
    def __init__(self, name):
        self.status = False
        self.value = False
        self.conn = {}
        self.name = name
        
    def __str__(self):
        return self.name

class Equation:
    def __init__(self, name):
        self.status = False
        self.left = self.get_left(name)
        self.right = self.get_right(name)
        self.name = name

    def get_left(self, name):
        for i in range(len(name)):
            if name[i] is '<' or name[i] is '=':
                return (name[:i])

    def get_right(self, name):
        for i in range(len(name)):
            if name[i] is '>':
                i += 1
                return (name[i:])
    def __str__(self):
        return self.name
