invert = lambda a: a[::-1]
slice = lambda array, step: [int(invert(array[i:i + step])) for i in range(
    len(array), step)]
answer = lambda x: invert(slice(invert(x), 3))
answer('123456789')
Right split a string into groups of 3