class IncrementableInteger(object):

    def __init__(self, val=0):
        self.val = val

def __pos__(self):


    class PlusOne:

        def __pos__(_self):
            self.val += 1
return PlusOne()

def __neg__(self):


    class MinusOne:

        def __neg__(_self):
            self.val -= 1
return MinusOne()

def __str__(self):
    return str(self.val)

def __repr__(self):
    return repr(self.val)
Multiple operators between operands