def next_recipe_digits(cur_recipe):
    """Calculate next recipe, based on the cur_recipe."""
    if cur_recipe == 0:
        return [0]
    digits = []
    while cur_recipe > 0:
        digits.append(cur_recipe % 10)
        cur_recipe = cur_recipe // 10
    return digits[::-1]