1 2 3 4 5 6 7 8
def encode(value): total = value + 1 return total def decode(value): total = value - 1 return total