def __eq__(self, other):
    try:
        return (((self.val % self.F.char) == (other.val % self.F.char)) and (self.F == other.F))
    except:
        return False
def __eq__(self, other):
    try:
        return (((self.val % self.F.char) == (other.val % self.F.char)) and (self.F == other.F))
    except:
        return False