HumanEval/145

 
def order_by_points(nums):
    """
    Write a function which sorts the given list of integers
    in ascending order according to the sum of their digits.
    Note: if there are several items with similar sum of their digits,
    order them based on their index in original list.

    For example:
    >>> order_by_points([1, 11, -1, -11, -12]) == [-1, -11, 1, -12, 11]
    >>> order_by_points([]) == []
    """
 

solution

 
    def weight(x):
        x_list = list(str(x))
        if x_list[0] == "-":
            x_list = x_list[1:]
            x_list = list(map(int, x_list))
            x_list[0] = -x_list[0]
        else:
            x_list = list(map(int, x_list))
        return sum(x_list)
    return sorted(nums, key=weight)

 

base input

 [[[1, 11, -1, -11, -12]], [[1234, 423, 463, 145, 2, 423, 423, 53, 6, 37, 3457, 3, 56, 0, 46]], [[]], [[1, -11, -32, 43, 54, -98, 2, -3]], [[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]], [[0, 6, 6, -76, -21, 23, 4]]] 

plus input

 [[[1, 2, 3]], [[-5, -12, 9, 15]], [[1111, 2222, 3333, 4444]], [[951, -753, 824, -444, 555]], [[-1000, -99, 0, 99, 1000]], [[100, 20, 300, 4, 5, 60000]], [[10, 20, 50, -100, -200, -500]], [[27, -54, 63, -72, 81, -90]], [[888, -777, 666, -555, 444, -333, 222, -111]], [[0, 0, 0, -1, -10, 1, 10]], [[100, 20, 300, 4, 5, 60000, 20]], [[888, -777, 666, -555, 444, -333, 222, -111, -111]], [[-5, -12, 9, 15, 15]], [[0, 0, -1, -10, 1, 10]], [[10, 20, 50, -100, -200, -500, 10]], [[4444, -5, -12, 9, 15, 15]], [[1, 2, 3, 1, 1]], [[1000, -12, 10, 9, 15]], [[888, -777, 666, -555, -333, 222, -111, -111]], [[888, -777, 666, -555, 444, -333, 222, -111, -111, 888, -111]], [[1111, 4444]], [[667, 888, -777, 666, -555, 444, -333, 222, -111]], [[4444, -54, -5, -12, 9, 15, 15]], [[-1000, 0, 99, 1000, -1000]], [[-753, 824, -444, 222, 824]], [[10, 20, -100, -200, -500]], [[4444, -777, -54, -5, -12, 9, 15, 15]], [[4444, -5, 63]], [[0, 1, 0, -1, 1, 10]], [[10, 20, -100, -200]], [[667, -777, 666, -555, 444, -333, 222, -111]], [[0, 0, -1, 1, 10]], [[0, 0, -1, 1, 10, 1]], [[4444, -5, 63, 4444]], [[-5, 9, 15]], [[1111, 2222, 3333, 4444, 3333]], [[667, 888, -777, 666, -555, 444, 63, 222, -111]], [[0, -90, 0, -1, 1, 10]], [[-12, -1, 1, 10]], [[888, -777, 666, -555, 444, -333, 222, -1000, -111, -555]], [[-753, 824, -444, 824]], [[888, -777, 666, -555, 444, -334, 222, -111, -111, 888, -111]], [[-72, -777, 666, -99, 444, -333, -111]], [[100, 20, 299, 4, 5, 6, 60000, 20, 299]], [[667, 888, -777, 666, -555, 1, 444, 63, 222, -555]], [[-72, -777, 666, 444, -333, -111]], [[888, -777, -555, 444, -333, 222, -111, -111]], [[4444]], [[20, -100, -200]], [[1, 2, 1, 1, 1]], [[10, 20, -100, -199, -200]], [[-12, -5, -12, 9, 15]], [[1, 2, 3, 2, 1]], [[0, 1, 0, -1, 1, 10, 10]], [[-5, -12, 9, 15, 15, -12]], [[1, 2, 3, 1]], [[0, 1, 0, -1, 10, -1]], [[10, 20, 951, -199, -200]], [[10, 20, 60000, 951, -199]], [[4444, -5, -12, 9, 6, 15, 15]], [[667, -777, 666, -555, 444, -333, 222, -111, -555]], [[-72, -777, 666, -100, 444, -333, -111]], [[63, -5, 63, 4444]], [[667, -777, 666, -555, 444, -333, 222, 6, -111]], [[27, -89, -54, 63, -72, 81, -90, 63]], [[-1000, -99, 0, 99, 1000, 0]], [[4444, -5, 62]], [[10, 20, 50, -100, -501, -200, -500]], [[667, -777, 666, -555, 4, -333, 222, -111]], [[-72, -777, 666, -99, 444, -333, -111, 444]], [[27, -89, -54, 63, -72, 667, -90, 63]], [[4444, 4444, -5, 63]], [[4444, -5, -12, 9, 6, 15, 15, 15, 4444]], [[1, 2, 3, 1, 1, 1]], [[27, -89, -54, 63, 667, -90, -1000]], [[10, 20, -100, -99, -199, -500]], [[667, 888, -777, 666, -72, -555, 444, 63, 555, 222, -111]], [[10, 20, -199, -200]], [[0, 0, -72, -1, 1, 10, 10, 1]], [[0, 0, 0, 0, -1, -10, 1, 10]], [[667, -777, -555, -554, 444, -333, 222, -111, -555]], [[4444, -5, -12, 9, -199, 15]], [[0, 0, -1, 10, 1]], [[-100, -200, -200]], [[0, 0, 0, -1, -10, -72, 1, 10]], [[667, 888, -777, 666, -72, -555, 444, 63, 555, 222, -111, 888]], [[-72, -777, 666, -99, 444, -333, -111, 444, 444]], [[1, 2, -89, 1]], [[1111, 4444, 2222, 3333, 4444]], [[2, 1, 1, 1]], [[-72, -777, 666, -99, 444, -333, -111, 444, 444, -99]], [[1111, 4444, 2222, 3333, 3334, 4444]], [[1, 2, 3, -753, 1]], [[81, 27, -54, 100, -72, 81, -90, 81, 27]], [[-72, -777, 666, -100, 444, -333]], [[0, 1, 0, -1, 3333, -1]], [[4444, 63]], [[-777, 666, -555, 444, -333, 222, -111, -111]], [[27, -54, -72, 81, -90]], [[27, -89, -54, 63, 667, -90, -1000, -1000, -999, -1000, -1000]], [[0, 9, -85, -129, 874, 6745, 8325, 67054, -816508, 9999999]], [[1, -22, -43, 24, -35, -57, 86, -98, 79, -11, 0, 6, 13, -38]], [[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, -12, -13, -14, -15, -16, -17, -18, -19, -20, -21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, -32, -33, -34, -35, -36, -37, -38, -39, -40, -41, 42, 43, 44, 45, 46, 47, 48, 49, 50]], [[456, 855, 23413, 11124, -22, -345, 6114, -999, -876, 101]], [[-33333, -22222, -11111, 11111, 22222, 33333, 100000]], [[789, 912, 677, 766, 456798, 226, 8934, 56789, -15, -68, -987]], [[13579, 24680, -86420, -97531, 9, -8, 7, -6, 5, 0, -4, 3, -2, 1]], [[142, 137, 203, 755, -500, -321, -23, 0, 76832, -53621]], [[21, 30, 38, -204, -206, 213, 161, -900, 915, 53, -77, -901, 911, -808]], [[1000, -1000, 200, -200, 500, -500, 333, -333]], [[-97531, -33333, -22222, -11111, 11111, 22222, 33333, 100000]], [[456, 854, 23413, 11124, -22, 3, 6114, -999, -876, 102]], [[21, 31, 38, -204, -206, 213, 161, -900, 915, 53, -77, -901, 911, -808]], [[456, 855, 23413, 11124, -345, 6114, -999, -876, 101]], [[21, 31, 38, -204, -206, 213, 161, -900, 915, 53, -901, 911, -808]], [[456, 854, 23413, 11124, -22, 3, 6114, -999, -876, 102, 854]], [[-97531, -33333, -22222, 213, -11111, 11111, 22222, 33333, 100000, -97531]], [[456, 855, 23413, 11124, -345, 6114, -999, -875, 101]], [[142, 137, 203, 8934, -500, -321, -23, 76832, -53621, -53621]], [[142, 137, 203, 8934, -500, -321, -23, 76832, -53621, -53621, -500]], [[456, 855, 23413, 11124, -345, 6114, -999, -876, 101, 6114]], [[21, 31, 38, 22, -204, -206, 213, 161, -900, 915, 53, -77, -901, 911, -808]], [[456, 855, 23413, 11124, -345, 6114, -875, 101]], [[21, -22222, 38, -206, 213, 161, -900, 456798, 53, -901, 911, -808]], [[13579, 24680, -86420, -97531, 9, -8, 53, 7, -6, 5, -4, 3, -2, 1]], [[456, 854, 23413, 11124, -22, 3, 6114, -999, -876, 102, 854, -876]], [[21, 31, 38, 22, -204, -206, 213, 161, -900, 915, 53, 101, -901, 911, -808]], [[21, -43, 38, -204, -206, 213, 161, -900, 915, 53, -77, -901, 911, -808]], [[456, 854, 23413, 11124, -22, 3, -6, -999, -876, 102, 854, -876]], [[456, 855, 23413, 11124, -345, 6114, -999, -876, 101, -346, 6114, 6114]], [[21, -43, 38, -204, -206, 213, 161, -900, 53, -77, -901, 911, -808, 161]], [[456, 854, 23413, 11124, -22, 3, 6114, -999, -876, 102, 854, -876, -999, 456]], [[21, -22222, 38, -206, 203, 161, -900, 456798, 53, -901, 911, -808]], [[21, -22222, 38, -206, 213, 161, -900, 456798, 53, -901, 911, -808, 213]], [[86, -345, -1000, 200, -200, 500, -500, 333, -333]], [[13579, 24680, -86420, -97531, -8, 7, -6, 5, 0, -4, 3, 11111, 1, 0]], [[21, 31, 38, 22, -204, -206, 213, 874, 161, -900, 915, 53, -77, -901, 911, -808, -808]], [[456, 855, 11124, -345, 6114, -999, -204, 101, 6114]], [[21, 31, 38, -204, -206, 213, 161, -900, 915, 53, -77, -901, 911, -808, -901]], [[-97531, -33333, -22222, -11111, 11111, 22222, 33333, 100000, 33333]], [[21, -22222, 38, -206, 203, -900, 456798, 53, -901, 911, -808]], [[21, 30, 38, -204, -206, 213, 161, -900, 915, 53, -77, -901, 911, -808, 911]], [[456, 854, 23413, 11124, -22, 3, 6114, -999, -876, 102, 854, -876, -999, 4, 456]], [[21, -22222, 38, -205, 213, 161, -900, 456798, 53, -901, 911, 213, -22222]], [[21, -22222, 456797, 38, -206, 203, -900, 456798, 53, -901, 910, 911, -808]], [[21, -22222, 456797, -206, 203, -900, 456798, 53, -901, 910, 911, -808]], [[21, 31, 38, 22, -204, -809, -206, 213, 161, -900, 915, 53, 101, -901, 911, -808]], [[-33333, -22222, -11111, 11111, 22222, 33333, 100000, 22222]], [[-97531, -33333, -22222, -11111, 11111, -53621, 33333, 100000, 33333]], [[21, 31, 38, 22, -204, -206, 213, 21, 161, -900, 915, -77, -901, 911, -808]], [[142, 137, 203, 755, -500, -321, -23, 0, 76832, -4]], [[21, 31, 38, 22, -204, -206, 213, 161, -900, 915, 53, 456797, -901, 911, -808]], [[21, -22222, 456797, -206, 203, -900, 456798, 53, -901, 910, 911, -808, 53]], [[-97531, -33333, -22222, -11111, 11111, 22222, 33333, 100000, -39, 33333, 11111, 33333]], [[13579, 24680, -1, -86420, -97531, -8, 7, -6, 5, 0, -4, 3, 11111, -86419, 1, 0]], [[13579, 24680, -86420, -97531, -3, 9, -8, -6, 5, 0, -4, 3, -2, 1]], [[0, 9, -85, -129, 874, 6745, 8325, 67054, 9999999]], [[21, 31, 38, -204, -206, 213, 161, -900, 915, 53, -77, -901, 911, -809, -901, 161]], [[142, 137, 203, 8934, -500, -321, -23, 915, 76832, -53621, -53621, -500]], [[456, 854, 43, 23413, 11124, -22, 3, -6, -999, -876, 102, 854, -876]], [[-999, 456, 854, 23412, 11124, -22, 3, 6114, -999, -876, 102, 3]], [[21, -22222, 38, -206, 213, 161, -900, 456798, 53, -901, 911, -808, 212, 213, 213]], [[-97531, -33333, -22222, 6745, 11111, 22222, 33333, -18, 33333]], [[0, 9, -85, -129, 874, 6744, 6745, 8325, 67054, -816508, 9999999]], [[1000, -1000, 200, 500, -500, 333, -333]], [[21, 31, 38, -204, -206, 161, -900, 915, 53, -77, -901, 911, -808]], [[-33333, -22222, 22223, -11111, 11111, 22222, 33333, 100000, 22222, 22222]], [[-11111, -33333, -22222, -11111, 11111, 22222, 33333, 100000, 22222]], [[456, 855, 11124, -345, 6114, -999, -204, 101, 6114, 455, -345]], [[-33333, -22222, -11111, 11111, 22222, 33333, 100000, -22222]], [[-33333, -22222, 6745, 11111, 22222, 33333, -18, 33333]], [[13579, 24680, -86420, -97531, 9, -8, 7, -6, 5, 0, -4, 3, -2, 1, 7]], [[21, 31, 52, 38, -204, -206, 161, -900, 915, 53, -77, -901, 911, -808]], [[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, -12, -13, -14, -15, -16, -17, -19, -20, -21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, -32, -33, -34, -35, -36, -37, -38, -39, -40, -41, 42, 43, 44, 45, 46, 47, 48, 49, 50]], [[21, 31, 38, -204, -206, 213, 161, -900, 915, 53, -901, 32, 911, -808]], [[0, 9, -86, -85, -129, -34, 874, 6744, 6745, 8325, 67054, -816508, 9999999]], [[456, 855, 23413, 11124, -345, 6114, 455, -875, 101]], [[21, -22222, 456797, -206, 203, -900, 456798, 53, -901, 910, -206, 911, -808]], [[21, 31, 38, 22, 31, -204, -809, -206, 213, 161, -900, 915, 53, 101, -901, 911, -808, -900]], [[21, 31, 52, 38, -204, -206, -900, 915, 53, -77, -901, 911, -808]], [[21, 31, -40, 38, 22, -204, -206, 21, 213, 161, -900, 915, 53, 456797, -901, 911, -808]], [[456, 855, 11124, -345, 47, 6114, -999, -204, 101, 6114, 455, -345]], [[21, -22222, 39, -206, 213, 161, -900, 456798, 53, -901, 911, -808, 213]], [[161, 912, 677, 766, 456798, 226, 8934, 56789, -15, -68, -987, -987]], [[142, 137, 203, 755, -500, -23, 0, 76832, -4]], [[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, -12, -13, -14, -15, -16, -17, -18, -19, -20, -21, 22, 23, 25, 24, 25, 26, 27, 28, 29, 30, 31, -32, -33, -34, -35, -36, -37, -38, -39, -40, -41, 42, 43, 44, 45, 46, 47, 48, 49, 50]], [[1000, -1000, 200, 500, 333, -333]], [[-33333, -22223, 22223, -11111, 11111, 22222, 33333, 789, 22222, 22222]], [[456, 855, 23413, 102, 11124, -345, 6114, 455, -875, 101]], [[21, -200, 31, 38, -204, -206, 213, 161, -900, 915, 53, -77, -901, 911, -809, -901, 161, 31]], [[86, -345, -1000, 200, -200, 500, -500, 333, -333, 500]], [[-22222, -11111, 11111, 22222, 33333, 100000, -22222]], [[21, 31, 38, 22, -204, -809, -206, 213, 161, -900, 915, 53, -999, -901, 911, -808, 38]], [[21, 31, -40, 38, 22, -204, -206, 21, 213, 161, -900, 915, 53, 456797, -901, 911, -808, 915]], [[-1000, 200, 500, -333, 500]], [[142, 137, 8934, -500, -321, 76832, -53621, -53621, -500]], [[21, 31, 38, -204, -206, 213, 161, -900, 915, 53, -77, -901, 911, -808, -901, -808]], [[21, -22222, 39, -206, 213, 161, -3, 456798, 53, -901, 911, -808, 213]], [[31, 38, -204, -206, 213, 161, -900, 916, 53, -77, -901, 911, -808, -901]], [[0, 9, -85, -129, 874, 6745, 8325, 9999999, 67054, 9999999]], [[456, 854, 23413, 11124, -22, -19, 3, 6114, -999, -876, 102]], [[142, 137, 203, 8934, 48, -321, -23, 76832, -53621, -53622, -500, 203]], [[13579, 24680, -86420, -97531, 9, -8, 7, -6, 5, 4, 0, -4, 3, -2, 1]], [[-33333, -22222, 24680, 11111, 22222, 33333, 100000]], [[21, 31, 38, 22, -204, -206, 213, 161, -900, 915, 53, 914, -77, -901, 911]], [[789, 912, 677, 766, -16, 456798, 226, 8934, 56789, -15, -68, -987]], [[142, 137, 203, 8934, -500, -321, -23, 76832, -53621, -53621, -500, 142, 142]], [[21, -22222, 39, -22221, -206, 213, 161, -3, 456798, 53, -901, 911, -808, 213]], [[142, 137, 204, 755, -500, -23, 0, 76832, -4]], [[21, -22222, 456797, -206, 203, 13579, -900, 456798, 53, -901, 910, 911, -808, 53]], [[21, 30, 38, -204, -206, 213, 161, -900, 915, 53, -77, -901, 911, -808, 911, 911]], [[21, 31, 38, -204, -206, 213, 161, -900, 915, 53, -77, -901, 911, 23413, -808]], [[21, 31, -40, 38, 22, -204, -206, 21, 213, 161, -900, 915, 53, 456797, -901, 911, -808, 911]], [[789, 912, 677, -345, 766, 456798, 226, 8934, 56789, -15, -68, -987]], [[142, 137, 203, 8934, -500, -321, -23, 76832, -53621, -53621, -500, 142, 142, -53621, -23]], [[456, 854, 23413, 853, 11124, -22, 3, 6114, -999, -876, 102, 854, -876, -999, 4, 456]], [[456, 854, 23413, 11124, 226, -19, 3, 6114, -999, -876, 102]], [[-1000, 200, 500, -333, 22223, 500]], [[142, -33333, 137, 203, 8934, -500, -321, -23, 76832, -53621, -53621, -500, 142, 142]], [[13579, 24680, 23412, -97531, 9, -8, 53, 7, -6, 5, -4, 3, -2, 1]], [[161, 912, 677, 766, 456798, 226, 56789, -15, -68, -987, -987]], [[13579, 24680, -86420, -97531, 9, -8, 7, -6, 5, 0, -4, 3, -2, 45, 0]], [[142, 137, 203, 755, -500, -321, -23, 0, 76832]], [[-33333, -22222, -11111, 11111, 22222, 755, 33333, 100000, 22222]], [[1000, -1001, 200, 500, -500, 333, -333]], [[21, -22222, 39, -206, 213, 161, -204, -3, 456798, 53, -901, 911, -808, -900, 213, 161]], [[456, 854, 11124, -22, 3, 6114, -999, -876, -998, 102, 854, -876, -999, 456]], [[789, 912, 677, -345, 766, 456798, 226, 8934, 56789, -15, -68, -986]], [[142, 137, 203, 8934, -321, -23, -53621, -53621, -500]], [[21, 31, 38, -204, -206, 213, 161, -900, 915, 53, 6, -901, 911, -808, -901]], [[-97531, -33333, -22222, 6745, 11111, 22222, 33333, -18, 33333, -22222]], [[456, 23413, 11124, -345, -346, 6114, -999, -875, 101]], [[21, 31, 38, -204, -206, 161, -900, 915, 53, -77, 910, -901, 911, -808]], [[1, -22, -43, 24, -35, -57, 86, -98, 79, -11, 0, 915, 6, 13, -38, 79]], [[456, 856, 23413, 11124, -345, 6114, -999, 101]], [[142, 137, 203, 8934, -500, -321, -23, 76832, -53621, -53621, -500, 142, 142, 142]], [[21, 31, 52, 38, -204, -206, 915, 53, -77, -901, 911, -808]], [[855, 11124, -345, 6114, -999, -204, 101, 6114, 455, -345]], [[142, -999, 203, 8934, -500, -321, -23, 76832, -53621, -53621]], [[20, 31, -40, 22, 23412, -204, -206, 21, 213, 161, -900, 915, 53, 456797, -901, 911, -808, 911]], [[142, 137, 204, 8934, -500, -321, -23, 76832, -53621, -53621, -500, 142, 142, 142]], [[21, -22222, 38, -206, 203, 22223, -900, 9, 53, -901, 911, -808]], [[142, 137, 203, -321, -23, -53621, -53621, -500]], [[13579, 24680, -86420, -97531, -3, 9, -8, -5, 5, 0, -4, 3, -2, 1]], [[-33333, -22222, -11111, 11111, 22222, 33333, 100000, -22222, -22222]], [[162, 21, 30, 38, -204, -206, 213, 161, -900, 915, 53, -77, -901, 911, -808]], [[86, -345, -1000, 200, -200, 500, -500, 199, 333, -333, 500]], [[456, 854, 43, 23413, 11124, -22, -6, -999, -876, 102, 854, -876]], [[226, 21, 31, 38, 22, -204, -206, 213, 161, -900, 915, 53, -77, -901, -808]], [[142, 137, 203, 8934, -500, -321, -23, 76832, -53621, -53621, -500, 142, 142, -53621, 142, -23, -53621]], [[456, 854, 11124, -22, 3, 6114, -999, -876, -998, 102, -876, -999, 456]], [[21, -22222, 38, -205, 213, 161, -900, 456798, 53, -901, 911, 213, -22221, -900, 161]], [[21, -22222, 39, -22221, -206, 213, 161, -3, 456798, 53, 911, -808, 213]], [[21, 30, 38, -204, -206, 213, 161, -900, 915, -77, -901, 911, -808]], [[24680, 21, 31, 38, -204, -206, 213, 161, -900, 915, 53, 39, 6, -901, 911, -808, -901]], [[-33332, -22222, -11111, 11111, 22222, 33333, 100000, 22222]], [[1000, 201, -1000, 200, 500, -500, 333, -333]], [[21, 31, 853, 22, 31, -204, -809, -206, 213, 161, -900, 915, 53, 101, -901, 911, -808, 916, -900]], [[789, 912, 677, 766, -16, 456798, 226, 8934, 56789, -15, -68, -987, 912]], [[-33333, -22222, -11112, 11111, 22222, 755, 33333, 100000, 22222]], [[21, -22222, 456797, -206, 203, -900, 456798, 53, 910, 911, -808]], [[21, -22222, 456797, 38, -206, 203, -900, 456798, 53, 910, 911, -808, 910]], [[86, -345, -1000, 200, -200, 500, -500, 333, -333, 500, -1000]], [[142, 137, 8935, -500, 203, -23, 76832, -53621, -53621]], [[21, -22222, 456797, 38, -206, 203, -900, 456798, 53, -901, 910, 911, -808, 456797]], [[21, 67054, 30, 38, -204, -206, 213, 161, -900, 915, 52, -77, -901, 911, -808, 21]], [[21, 31, 38, -203, -206, 213, 161, -900, 915, 53, -77, -901, -809, -901, 161]], [[21, -22222, 38, -206, 203, 161, -900, 456798, 53, -901, 911, -808, 911]], [[37, 21, 31, 38, 22, 31, -204, -809, -206, 213, 161, -900, 915, 53, 101, -901, 911, -808, -900, 101]], [[86, -345, -1000, 200, -200, 500, -500, -22223, 333, -333]], [[21, -22222, 456797, -206, 203, -900, 456798, 911, 53, -901, 910, 911, -808, 456797]], [[162, 21, 30, 38, -204, -206, 213, 161, -900, 915, 53, -77, -901, 911, -808, 915]], [[0, 10, -85, -129, 874, 6745, 8324, 9999999, 67054, 9999999]], [[13579, 24680, -86420, -3, 9, -6, 5, -7, -4, 3, -2, 1, -7]], [[456, 854, 43, 23413, 11124, -22, -6, -999, -876, 102, 854, 456, -876]], [[21, -22222, -22221, -206, 213, 161, -3, 456798, 53, 911, -808, 213, -3]], [[21, 31, 38, 22, -204, -809, -206, 213, 161, -900, 915, 53, 101, -901, 911, -808, -809]], [[0, 9, -85, 677, 22223, -129, 874, 6745, 8325, 67054, 9999999]], [[456, 23413, 11124, -345, -346, 6114, -999, -875, 101, -345]], [[-22222, 38, -206, 213, 161, 456799, -900, 456798, 53, -901, 911, -808]], [[142, 137, 203, 755, -500, -321, -23, 0, 76832, 203]], [[6114, 137, 8934, -501, -321, 76832, -53621, -53621, -500]], [[13579, 24680, -86420, -97531, -8, 7, -6, 5, 0, -4, 3, 11111, 1, 0, -86420]], [[1000, 201, -1000, 200, -999, 500, -500, 333, -333, 200]], [[789, 912, 677, 766, 456798, 226, 8934, 56789, -15, -68, -987, -68]], [[21, -22222, -22221, -206, 213, 161, -3, 456798, 53, 911, -808, -3]], [[456, 855, 23413, 11124, -345, 6114, -999, -876, 789]], [[21, 31, 38, -205, 213, 161, -900, 456798, 53, -901, 102, -808]], [[852, 21, 31, 853, 22, 31, -204, -809, -206, 213, -34, 161, -900, 915, 53, 101, -901, 911, -808, 916, -900]], [[142, 137, 203, 8934, 138, -321, -23, -53621, -53621, -500]], [[21, -22222, 38, -206, 203, 22223, -900, 9, 53, -901, 911, -808, -900]], [[21, 31, 38, 22, -204, -809, -206, 161, -900, 915, 53, -999, -901, 911, -808, 38]], [[21, 31, -41, 38, 22, -204, -206, 21, 213, 161, -900, 915, 53, 456797, -901, 911, -808, 911]], [[21, 31, -76, 38, -204, -206, 213, 161, -900, 915, 53, -77, -901, 911, -808]], [[21, 30, 38, -204, -206, 213, 161, -900, 915, 53, -77, -901, 911, -808, 912, 911, 911]], [[142, -999, 203, 8934, -500, -321, -23, 76832, -53621, -53621, 8934]], [[456, 38, -204, -206, 213, 161, -900, 53, -77, -901, 911, -808, 161]], [[852, 21, 31, 853, 22, 31, -204, -809, -206, 213, -34, 161, -900, 915, 53, 101, -901, 911, -808, 916, -900, 21, 31]], [[142, -33333, 137, 203, 8934, -500, -33334, -321, -23, 76832, -53621, -53621, -500, 142]], [[21, -22222, 38, -206, 213, 161, -900, 456798, 53, -901, 911, -808, 213, 213, 213]], [[21, -22222, 13579, 38, -206, 213, 161, -900, 456798, 53, -901, 911, -808, 213]], [[226, 21, 31, 38, -204, -206, 213, 161, -900, 915, 53, -77, -901, -808]], [[43, 456, 854, 11124, -22, 3, 6114, -999, -876, -998, 102, 854, -876, -999]], [[-97531, -33333, -22222, 6745, 11112, 22222, 33333, -18, 33333, -22222, -33333]], [[457, 855, 23413, 11123, 11124, -345, 6114, -999, -876, 101, 6114]], [[21, 31, -40, 38, 22, -204, -206, 21, 213, 161, -900, 915, 53, 456797, -901, 911, -808, 911, 456797, -40]], [[21, -22222, 39, -206, 213, 161, -3, 456798, 53, -901, -22223, 911, -808, 213]], [[-97531, -22222, 6745, 22222, 33333, -18, 33333, -22222, -33333]], [[21, 31, -40, 38, 22, -204, -206, 21, 213, 161, -900, 915, 53, 456797, -901, 911, -808, 911, -204, 456797, -40, 22]], [[456, 854, 43, 23413, 11124, -22, -6, -999, -876, 102, 854, 456, -876, 854]], [[142, -999, 203, 8934, -500, -321, -23, 76832, -53621, -53621, 8934, 142]], [[456, 23413, 11124, -345, 6114, -999, -876, 101, -346, 6114, 6114]], [[456, 854, 23413, 11124, -22, -19, 3, 6114, -999, -876, 102, 23413]], [[162, 21, 30, 38, -204, -206, 213, 161, -900, 915, 53, -77, -901, 911, -808, 21]], [[21, -22222, 456797, -206, 203, -900, 456798, 53, -901, 911, -808, 53]], [[21, 31, 38, 22, -204, -809, -206, 79, -900, 915, 53, -999, -901, 911, -808, 38]], [[-15, 912, 677, 766, -16, 456799, 226, 8934, 56789, -15, -987, 912]], [[142, 137, 203, 8934, -500, -321, -23, 76832, -53621, -53621, -500, 142, 142, -53621, -23, -500]], [[-999, 456, 854, 23412, 11124, -22, 3, -999, -876, 102, -53621, 3, 3]], [[21, -22222, 38, -206, 213, 161, -900, 456798, 53, -901, 911, -808, 213, 213, 213, 53]], [[-22222, 38, -206, 203, -900, 9, 53, -901, 911, 13, -808, -900]], [[21, -22222, 38, -206, 203, -900, 456798, 53, -901, 911, -808, 53]], [[789, 912, 677, -345, 766, 456798, 226, 8934, 56789, -15, -68, -986, 789]], [[21, 67054, 30, 38, -204, -206, 213, 161, -900, 915, 53, -77, -901, 911, -808, 21, 52]], [[21, 31, 38, 22, -204, -809, -206, -900, 915, 53, -999, -901, 911, -808, 38]], [[21, 31, -40, 38, 22, -204, -206, 21, 213, 161, 213, -900, 915, 53, 456797, -901, 911, -808, 911, 456797, -40]], [[456, 854, 23413, 853, 11124, -22, 3, 6115, -999, -876, 102, 854, -876, -999, 4, 456]], [[142, 137, 203, 755, -501, -321, -23, 0, 76832]], [[142, -22, 137, 203, 8934, -500, -321, -23, 76832, -53621, -53621, -500, 142, 142, -53621, -23, -500]], [[456, 854, 43, 23413, 11124, -22, -6, -999, -876, 102, 854, 456, -876, 854, -6]], [[142, 137, 203, 8934, -500, -321, -23, 76832, -53621, -53622, -500, 142, 142, -53621, -23, -500]], [[21, -22222, 456797, -206, 203, 13579, -900, 456798, 53, -899, 13, 911, -808, 53]], [[456, 855, 23413, 11124, -345, 6114, 31, -876, 101, -345]], [[21, -22222, 38, -206, 213, 161, -900, 456798, 53, 31, 911, -808]], [[21, -22222, 39, -206, 213, 161, -3, 456798, 53, -901, 911, -808, 213, 21]], [[456, 855, 23413, 11124, -345, -998, 6114, -999, -876, 101, -346, 6114, 6114]], [[-346, 855, 23412, 11124, -345, 6114, -999, -877, 101, 6114]], [[13579, 24680, -86420, -97531, 9, -8, 2, 7, -6, 5, 4, 0, -4, 3, -2, 1]], [[21, 30, 38, -204, 213, 161, -900, 915, -77, -901, 911, -808]], [[142, 137, 203, 8934, -500, -321, -23, 76832, -53621, -53621, -500, 142, 142, 142, 142]], [[456, 854, 23413, 11124, -22, 3, -6, -999, -876, 102, 854, -876, 23413]], [[21, 30, 38, -204, -206, -17, 213, 161, -900, 915, 53, -77, -901, 911, -900]], [[142, 137, 8934, -321, -23, -53621, -53621, -500]], [[21, -22222, 39, -22221, -206, 213, 161, 45, -3, 456798, 53, -901, 911, -808, 213]], [[21, -22222, 38, -206, -987, 161, -900, 456798, 53, 911, -808, 213, 213, 213, 53]], [[1, 2, 3, 4, 5, 6, 7, 11, 8, 9, 10, 11, -12, -13, -14, -15, -16, -17, -18, -19, -20, -21, 22, 27, 23, 25, 24, 25, 26, 27, 28, 29, 30, 31, -32, -33, -34, -35, -36, -37, -38, -39, -40, -41, 42, 43, 44, 45, 46, 47, 48, 49, 50, -36]], [[21, 31, 38, -204, -206, 213, 161, -900, 915, 53, -901, -39, 911, -808]], [[-33333, -22222, -11112, 11111, 755, 33333, 100000, 22222]], [[1000, -1000, 200, 500, 333, -333, 200]], [[456, 38, -204, -206, 213, 161, -900, 53, -77, -901, 911, -808, 161, -206]], [[21, 30, 38, -204, -206, -17, 213, 161, -900, 915, 53, -77, -901, 49]], [[21, -22222, 38, -206, 213, 161, -900, 456798, -901, 911, -808, -53622, 213]], [[456, 854, 23413, 11124, -22, 3, -6, -999, -876, 102, 854, -876, 23413, -37]], [[0, 9, 455, -129, 874, 6745, -39, 67054, -816508, 856]], [[456, 854, 43, 23413, 11124, -22, 3, -6, -999, -876, 102, 854, -876, 456]], [[456, 854, 23413, 11124, 2, -22, 3, -6, -999, -876, 102, 854, 853, -876, -37, 456]], [[13579, 24680, -86420, -97531, -8, 7, -6, 5, 0, -4, 3, 11111, 1]], [[-22222, 38, -206, 203, -900, 9, 53, -901, 911, 13, -808, -900, 13]], [[21, 31, 38, -204, 912, -206, 213, 161, -900, 915, 53, -77, -901, 911, -808]], [[21, 31, 38, 22, -204, -206, 213, 161, -900, 915, 53, 101, -36, -901, 911, -808]], [[855, 11124, 11124, -345, 6114, -999, -876, 789, -999]], [[456, 854, 23413, 11124, -22, 3, -999, -999, -876, 102, -876]], [[21, 31, 38, 22, -204, -206, 213, 161, -900, 915, 53, 101, -36, -901, 911, -808, 22]], [[456, -344, 855, 11124, -345, 47, 6114, -999, -204, 101, 6114, -345]], [[-22222, 38, -206, 203, -900, 9, 53, -901, 911, 13, -808, -900, 13, -22222, 203]], [[21, 31, 38, 22, -204, -206, 213, -22222, 161, -900, 915, 38, 53, 101, -36, -901, 911, -808]], [[31, 38, -204, -206, 213, 161, -900, 916, 52, -77, -901, 911, -808, -901]], [[21, 30, 38, -206, -17, 213, 161, -900, 915, 53, -77, -901, 911, -900]], [[456, 854, 23413, 11124, 226, -19, 3, 6114, -999, -876, 102, -999]], [[21, 31, 38, 22, -204, -809, -206, 213, 161, -900, 915, -999, -901, 911, -808, 38]], [[-33333, -22222, -11111, 11111, 22222, 33333, -22222]], [[-97530, -33333, -22222, -11111, 11111, 22222, 33333, 100000]], [[456, 855, 11124, -345, -998, 6114, -999, -876, 101, -346, 6114, 6114]], [[-999, 456, 854, 23412, 11124, -22, 4, 6114, -999, -876, 102, 3]], [[456, 854, 23413, 11124, -22, -6, -999, -876, 102, 854, -876]], [[21, -22222, 456, -206, 203, -900, 456798, 53, -901, 910, -808, 53]], [[21, -205, 31, 38, -204, -206, 213, 161, -900, 915, 53, -901, 911, -808]], [[456, 855, 23413, 11124, -345, 6114, -999, -876, 101, -346, 6114, 6114, -346]], [[456, 854, 23413, 11124, -22, 3, 6114, -999, -876, 854, -876]], [[21, -22222, 38, -206, 161, -900, 456798, 53, -901, 911, -808, 213, 213, 213, 53]], [[21, 31, 38, 22, -204, 911, -809, -206, -900, 915, 53, -999, -901, 911, -808, 38]], [[-200, 31, 38, -204, -206, 213, 161, -900, 915, 53, -77, -901, 911, -809, -901, 161, 31]], [[456, 854, 23413, 11124, -22, 3, 6114, -999, 102, 854]], [[21, -22222, 38, -205, 213, 161, -900, 456798, 53, -901, 911, 213, -22222, 456798]], [[456, 854, 853, 11124, -22, 6115, 3, 6114, -999, -876, 102, 854, -876, -999, 4, 456]], [[67054, 30, 38, -204, -206, 213, 161, -900, 915, 52, -77, -901, 911, -808, 21, 911, 52]], [[0, 9, -85, 874, 6745, 8325, 9999999, 67054, 9999999, 6745]], [[-97531, -33333, -22222, -11111, 11111, 22222, 33333, 100000, -97531]], [[456, 854, 43, 23413, -22, 3, -6, -999, -876, 102, 854, -876, 456, 43]], [[456, 855, 23413, 11124, -345, 6114, -875, -37, 101]], [[13579, 24680, -86420, -97531, 9, -8, 7, -7, 5, 0, -4, 3, -2, 1, -97531]], [[37, 21, 31, 38, 22, 31, -204, -809, -206, 213, 161, -900, 915, 53, 101, 226, 911, -808, -900, 101]], [[855, 11124, 11124, -345, 6114, -999, -876, -16, -999]], [[0, 9, -85, -129, 874, 6745, 8325, -816507, 67054, -816508, 9999999]], [[854, 23413, 23413, 11124, -22, 3, 6114, -999, -876, 854, -876, -876]], [[-33333, -22222, 22223, -11111, 11111, 22222, 33333, 100000, 22222, 22222, 100000, 11111]], [[456, 855, 23413, 11124, -345, -999, -876, 101, 6114]], [[21, -68, 38, -204, -206, 213, 161, -900, 915, 53, 6, -901, 911, -808, -901, 915, 21]], [[1000, 200, 500, -500, 333, -333]], [[13579, 24680, -86420, -97530, 9, -8, 7, 213, 5, 0, -15, 3, -2, 1, 7]], [[21, 31, 38, -204, -206, 213, 161, -900, 915, 53, -77, -901, 911, -808, -5]], [[226, 21, 31, 38, 22, -204, -206, 161, -900, 915, 11112, 53, -77, -901, -808]], [[456, 855, 23413, 11124, -345, 6114, -999, -876, 101, -1000, -346, 6114, 6114]], [[21, 31, 38, -204, -206, 213, 161, -900, 915, 53, -901, -39, -808]], [[21, -22222, 38, -205, 213, 161, -900, -22223, 456798, 53, -901, 911, 213, -22221, -900, 161, 21]], [[22223, -33333, -22222, 22223, -11111, 11111, 22222, 33333, 100000, 22222, 22222, 100000, 11111]], [[21, 67054, 30, 38, -204, -206, 213, 161, -900, 915, 53, -77, -901, 911, -808, 21, 52, 915]], [[21, 31, 38, 54, 22, -204, -206, 213, 161, -900, 915, 53, 101, -36, -901, 911, -11111, -808, 22]], [[21, 31, 38, -204, -206, 161, -900, -205, 915, 53, -77, -901, 911, -808]], [[-22222, -11111, 200, 22222, 33333, 100000, -22222, -22222]], [[456, 856, 23413, -35, -345, 6114, -999, 101]], [[-33332, -22222, 11111, 22222, 33333, 100000, 22222, 33333]], [[21, 30, 38, -204, 213, 161, -900, 915, -77, -901, 911, -808, -77]], [[21, 67054, 30, -43, -204, -206, 213, 161, -900, 915, 53, -77, -901, 911, -808, 21, 52]], [[-22222, 38, -206, 203, -900, 9, 53, -901, 911, 13, -808, -900, 13, 53]], [[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, -12, -13, -14, -15, -16, -17, -18, -19, -20, -21, 22, 23, 25, 24, 25, 26, 27, 28, 29, 30, 46, 31, -32, -33, -34, -35, -36, -37, -38, -39, -40, -41, 42, 43, 44, 45, 46, 47, 48, 49, 50]], [[789, 912, 677, -345, 678, 766, 456798, 226, 8934, 56789, -15, -68, -986]], [[-97531, -33333, -22222, 6745, 11112, -33334, 22222, 33333, 914, 33333, -22222, -33333, -22222]], [[456, 854, 43, 23413, 11124, -22, -6, -999, -876, 102, 854, 456, -876, 102]], [[852, 21, 31, 853, 22, 31, -204, -809, -206, 213, -34, 161, -900, 915, 53, 101, -901, 911, 916, -900, 21, 31]], [[-205, 21, -22222, 38, -206, 203, -900, 456798, 53, -901, 911, -808]], [[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, -12, -13, -14, -15, -16, -17, -18, -19, -20, -21, 22, 23, 25, 24, 25, 26, 27, 28, 29, 30, 46, 31, -32, -33, -34, -36, -37, -38, -39, -40, -41, 42, 43, 44, 45, 46, 47, 48, 49, 50]], [[-33333, -22222, 24680, 11111, 8324, 33333, 100000]], [[21, -22222, 39, -22221, -206, 213, 161, -3, 456798, 53, -901, 911, -808, 213, -22222]], [[456, 854, 23413, 11124, 2, -22, 3, -6, -999, 102, 854, -876, -37, 456]], [[21, -22222, 39, -206, 213, 161, -3, 456798, -22223, 911, -808, 213]], [[21, 31, 38, 22, -204, -206, 213, 161, -900, 20, 53, 456797, -901, 911, -808]], [[142, 137, 8934, -321, -53622, -23, -53621, -53621, -53621, 27, -500]], [[13579, 24680, -86420, -97531, 9, -8, 7, -6, 5, -4, 3, -2, 1]], [[456, 43, 23413, -22, 3, -6, -999, -876, 102, 854, -876, 456, 43]], [[-97531, -22222, 6745, 11111, 22222, 33333, -18, 33333, -22222]], [[-33333, -22222, 22223, 38, 11111, 22222, 33333, 100000, 22222, 22222, 100000, 11111]], [[24680, 21, 31, 38, -204, -206, 213, 161, -900, 915, 53, 39, 6, -901, 911, -808, -901, -900]], [[852, 21, 31, 853, 22, 31, -204, -809, -206, 213, -34, 161, -900, 915, 53, 101, -11111, -901, 911, -808, 916, -900]], [[21, 67054, 30, -43, -204, -206, 213, 161, -900, 915, 53, -77, -901, 911, 21, 52]], [[24680, -86420, -3, 9, -6, 5, -7, -4, 3, -2, 1, -7]], [[-22222, 38, -206, 203, -900, 9, 52, -901, 911, 13, -808, -900, 13, -22222, 203]], [[21, 38, -206, 213, 161, -900, 456798, 53, -901, 911, -808]], [[142, 137, 8934, 48, -321, -23, 76832, -53621, -53622, -500, 203]], [[456, 854, 23413, 11124, 226, -876, 11123, -19, 3, 6114, -999, -876, 102, -999]], [[456, 854, 23413, 852, 11124, -22, 3, -6, -876, 102, 854, -876]], [[86, -345, 911, -1000, 200, -200, 500, -500, 333, -333]], [[456, 855, 23413, 11124, -345, 6114, -999, -876, 789, -999]], [[-22222, 38, -206, 203, -900, 53, -901, 911, 13, -808, -333, 13, -900]], [[21, -205, 31, 38, -204, -206, 213, 161, -900, 53, -901, 911, -808, -206]], [[456, 854, 43, 23413, -22, 4, -999, -23, -876, 102, 854, -876, 456, 43]], [[-97531, -33333, -22222, 6745, 11111, 22222, 33333, 33333, -22222, 22222]], [[21, -22222, 38, -206, 213, 161, -900, 456798, 53, -901, 39, 911, -808, 213, 213, 213]], [[-22222, 38, -206, 161, -900, 456798, 53, -901, 911, -808, 213, 213, 213, 30, 53, -22222, 456798]], [[456, 789, 855, 11124, -345, 6114, -876, 789, -999]], [[1, -22, -43, 24, -35, -85, 86, -98, 79, -11, 0, 6, 13, -33332]], [[142, -205, 204, 755, -500, -23, 0, 24, 76832, 76831, -4]], [[21, -22222, 38, -205, 213, 161, -900, 456798, 53, -901, 911, 213, -22222, -900]], [[21, -22222, 38, -205, 213, 161, -900, 456798, 53, -901, 911, 213, -22222, 456797]], [[142, 137, 8934, -500, -321, -23, 76832, -53621, -53621, -500, 142, 142, 142]], [[789, 912, 677, -345, 766, 456798, 226, 8934, 56789, -15, -986, 789, 677]], [[-36, 456, 854, 23413, 853, 11124, -22, 3, 6115, -999, -876, 102, 854, -876, -999, 4, 456]], [[24680, 137, 8934, -500, -321, 76832, -53621, -53621, -500]], [[21, -22222, 39, -22221, -205, -206, 213, 161, -3, 456798, 53, -901, 911, -808, 213, -22222]], [[142, -33333, 137, 203, 8934, -500, -33334, 6115, -23, 76832, -53621, -53621, -500, 142]], [[855, 11124, -345, 6114, -999, -204, -998, 101, 6114, 455, -345]], [[142, -321, 137, 203, 755, -500, -321, -23, 0, 76832, -53621, -321, 755]], [[21, -22222, 456797, 38, -206, 203, -900, 456798, 53, -901, 910, 911, -808, -206]], [[1, -22, -43, 24, -35, -57, 86, -98, 79, -11, 0, 6, 13, -38, 0]], [[456, 854, 11124, -22, -204, 6114, -999, -876, -998, 102, -876, -999, 456]], [[21, 31, 38, -203, -206, 213, 161, -900, 915, 54, -77, -901, -809, -901, 161]], [[456, 854, 11124, 23413, 853, 11124, -22, 3, 6115, -999, -876, 102, 854, -876, -999, 4, 456, 854, 11124]], [[1000, 200, 500, -500, 333, -333, 500, 333]], [[21, -22222, 38, 142, -205, 213, 161, -900, 456798, 53, -901, 911, 213, -22222, 456797]], [[13579, 24680, 11, -86420, -97531, 9, -8, 7, -7, 5, 0, -4, 3, -2, 1, -97531]], [[21, 31, 38, -204, 912, -206, 213, 161, -900, 915, 54, -77, -901, 911, -808]], [[31, 38, 22, -204, -809, -206, 213, 161, -900, 915, 53, 101, -901, 911, -808, -809]], [[21, -68, 38, -204, -206, 213, 161, -900, 915, 53, 6, -1001, -901, 911, -808, -901, 915, 21]], [[21, 31, 38, 22, -204, -206, 213, 161, 500, 915, 53, 101, -36, -901, 911, -808, 22]], [[142, 137, 203, 8934, -500, -321, -23, 76832, -53621, -53621, -500, 142, 142, 6745, 142, -23, -53621, 142]], [[21, -22222, 456798, -206, 203, 13579, -900, 456798, 53, -899, 13, 911, -16, 53, -900]], [[21, -22222, 38, -205, 213, 161, -900, 456798, 53, -901, 911, 213, -22222, 456797, 911, 911]], [[1000, -1000, 200, 500, -86420, -500, 333, -333]], [[161, 32, 912, 677, 766, 456798, 226, 56789, -15, -68, -987, -987, 32]], [[142, 137, 8934, -500, -321, 76832, -53621, -53622, -53621, -500]], [[21, -22222, 456797, 38, -206, 203, -900, 456798, 53, 910, 911, -808, 909]], [[142, -999, 203, 86, -500, -321, -23, 76832, -53621, -53621, -53621]], [[142, 137, 202, -321, -23, -53621, -53621, -500, -500]], [[456, 854, 23413, 11124, -22, 3, 6114, -999, 102, 854, 456]], [[0, 9, -85, 874, 6745, 8325, 9999999, 67054, 6745]], [[21, -22222, 38, -206, -807, 213, 161, -900, 456798, 53, -901, 911, -808, 212, 213, 213, 911]], [[789, 912, 677, -345, 456798, 226, 8934, 56789, -15, 24680, -986, 789]], [[142, 137, 203, 8934, 138, -321, -23, 6114, -53621, -500, 142, -500]], [[21, 31, 38, 22, -204, -206, 213, 161, -900, 20, 53, 456797, -901, 911]], [[21, -22222, 456796, -206, 203, 13579, -900, 456798, 53, -901, 910, 911, -808, 53, 203]], [[456, 22223, 11124, -345, 6114, -999, -204, 101, 6114]], [[21, 31, 38, 22, -204, -809, -206, 79, -900, 915, 53, -999, -901, -808, 38, 53]], [[456, 854, 23413, 11124, 2, -22, 3, -6, 138, -999, -876, 102, 854, 853, -876, -37, 456, -876]], [[456, 854, 23413, 11124, -22, 6114, -999, -876, 102, 854, -876, -999, 4, 456]], [[21, 30, 38, -204, 213, 161, -900, -3, 915, -77, -901, 911, -808, 213]], [[456, 854, -500, 11124, 226, 11123, -19, 3, 6114, -999, -876, 102, -999]], [[456, 855, 11124, -36, -345, 47, 6114, -999, -204, 101, 6114, 455, -345]], [[0, 9, 455, -129, 874, 6745, -39, 67054, -816508, 856, 856]], [[21, -22222, 456797, 38, -206, 203, 456798, 53, -901, 911, -808]], [[-34, 21, -205, 31, 38, -204, -206, 213, 161, -900, 53, -901, 911, -808, -206]], [[21, 67054, 30, -43, -204, -206, 213, 161, -900, 915, 53, -77, -11111, 911, 21, 52]], [[13579, 24680, -86420, -97531, -8, 7, -6, 5, 0, -809, 3, 11111, 1]], [[21, -22222, 38, -205, 213, 161, -900, 456798, 53, -901, 911, 213, -22222, -900, 53, -900]], [[21, 67054, 30, -43, -204, -206, 213, 161, -900, 915, 53, -77, -901, 52, 911, -808, 21, 52]], [[789, 912, 677, -345, 766, 456798, 226, 8934, -15, -68, -986, 456798]], [[21, -22222, 456797, 38, -206, 203, 456798, 53, -901, 911, -808, 21]], [[1, -22, -43, 24, -35, -85, 86, 13, -98, 79, -11, 0, 6, 13, -33332]], [[456, 854, 43, 23413, 11124, -22, 3, -6, -999, -876, 102, 854, -876, 854]], [[456, 854, 23413, 853, -23, 11124, -22, 3, 6114, -999, -876, 102, 854, -876, -999, 4, 456]], [[-86420, 137, -321, -23, -53621, -53621, -500]], [[456, 854, 23413, 11124, -22, 6114, -999, -876, 102, 854, -876, -999, 4, 456, 102]], [[456, 854, 23413, 852, 11124, -22, 3, -6, -876, 102, 199, -876]], [[852, 21, 31, 853, 22, 31, -204, -809, -206, 213, -34, 161, -900, -899, 6114, 101, -901, 911, -808, 916, -900, 916]], [[789, 912, 677, -345, 766, 456798, 226, 8934, 56789, -15, 789, 677]], [[21, 31, 38, -205, 213, 161, -900, -200, 53, -901, 102, -808]], [[24680, 21, 31, 38, -204, -206, 213, 161, -900, 915, 53, 39, 7, -901, 911, -808, -901, -900]], [[161, 912, 8324, 677, 766, 456798, 226, 8934, 56789, -15, -68, -987, -97530]], [[21, 39, -204, -206, -17, 213, 161, -900, 915, 53, -77, -901, 49]], [[21, 31, 38, 22, -204, 911, -809, -206, -900, 915, 53, -999, -901, 911, -807, -808, 38]], [[456, -344, 855, 11124, -36, -345, 47, 6114, -999, -204, 101, 6114, 455, -345]], [[-97531, -33333, -22222, 6745, -33334, 22222, 33333, 914, 33333, -22222, -33333, -22222]], [[456, 854, 23413, 11124, -22, 3, -999, -999, -876, 102, -876, -999]], [[456, 854, 23413, 855, 11124, 2, -22, 3, -6, -999, 102, 854, -37, 456, 854]], [[21, 31, 38, 54, 22, -204, -206, 213, 161, -900, 915, 53, 101, -36, -901, 911, -11111, -808, 22, -36]], [[789, 912, 677, -345, 766, 456798, 456796, 226, 8934, 56789, -15, -68, -986]], [[13579, 24680, -86420, -97531, -8, 7, -6, 5, 0, -4, 3, 102, 11111, 1]], [[21, -22222, 456797, 3, -206, 203, -900, 456798, 53, -901, 910, 911, -808, -206]], [[21, 31, 38, 22, -204, -206, 213, 161, -900, 915, 53, 53, 914, -77, -901, 911, -206]], [[1000, 999, -1000, 200, 500, -332, -86420, 333, -333]], [[137, -321, -53621, -53621, -500]], [[-205, 21, -22222, 38, -206, 203, -900, 456798, 53, -900, 911, -808]], [[24680, 137, 8934, -500, -321, 8325, -53621, -53621, -500]], [[789, 912, 677, -345, 766, 456798, 226, 8934, 56789, -15, -68, -986, 789, -986]], [[13579, 24680, -86420, -97531, 9, -8, 7, -6, 5, 0, -4, 3, -2, 45, 0, 7]], [[142, -205, 204, 755, -500, -23, 0, 24, 76832, -16, -4]], [[21, -22222, 38, -206, 213, 23412, -808, -900, 456798, -901, 911, -808, -53622, 213]], [[1, 2, 3, 4, 5, 6, 7, -53622, 9, 10, 11, -12, -13, -14, -15, -16, -17, -18, -19, -20, -21, 2, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, -32, -33, -34, -35, -36, -37, -38, -39, -40, -41, 42, 43, 44, 46, 47, 48, 49, 50]], [[21, -22222, -206, 213, 161, -900, 456798, 53, 31, 911, -808]], [[142, -320, -321, 137, 203, 755, -500, -321, -23, 0, 76832, -53621, -321, 755]], [[-97531, -33333, -22222, -11111, 11111, -53621, 33333, 100000, 33333, 11111, -53621]], [[-346, 855, 23412, 11124, -345, 6114, -999, -877, 101, 6114, -346]], [[21, -22222, 38, -206, 203, 161, -900, 456799, 53, -901, 911, -808, -808]], [[-22222, 38, -206, 203, 22223, -900, 9, 53, -901, 911, -808]], [[-97531, -33333, -11111, 11111, -53621, 33333, 100000, 33333]], [[456, 855, 23413, 11124, 6114, -876, -1000, -346, 6114, 6114]], [[855, 11124, 11124, -345, 6114, -999, -876, 789, -346, -999, -999]], [[1, 21, -22222, 456798, -206, 203, 13579, -900, 456798, 53, -899, 13, 911, -16, 53, -900]], [[-97531, -33333, -22222, 6745, 22222, 33333, -18, 33333, 6745]], [[13579, -86420, -97531, 9, -8, 7, -6, 5, 0, -4, 3, -203, -2, 45, 0]], [[456, 43, 23413, -22, 3, -6, 455, -876, 102, 854, -876, 853, 456, 43]], [[456, 855, 11124, -36, -345, 47, 6114, -999, -204, 101, 6114, 455, -345, 855]], [[20, -22222, 39, -206, 213, 161, -3, 456798, 53, -901, 911, -808, 213]], [[21, -22222, 38, -206, -807, 213, 161, -900, 456798, 53, 911, -808, 212, 213, 213, 911]], [[-33332, -22222, -11111, 11111, 22222, 755, 33333, 22222, 100000]], [[21, 67054, 30, -204, -206, 213, 161, -900, 915, 53, -77, -901, -39, 52, -875, 911, -808, 21, 52]], [[21, 38, -206, 213, 23412, -808, -901, 456798, -901, 911, -808, -53622, 213]], [[-97531, -33333, -22222, 6745, 11112, 22222, 33333, 914, 33333, -22222, -33333, -22222, 33333]], [[21, 67054, -986, 30, -204, -206, 213, 161, -900, 915, 53, -77, -901, -39, 51, -875, 911, -808, 21, 52]], [[21, -22222, 38, -205, 213, 161, -900, 456798, 53, -901, 911, 213, -22222, -900, 53, -900, 213]], [[21, 31, 38, -206, 213, 161, -900, 915, 53, -77, -901, 911, -808, -901, -808]], [[456, 855, -1001, 23413, 11124, 6114, -877, -1000, -346, 6113, 6114]], [[21, -22222, 39, -206, 213, 161, 456797, -3, 456798, 53, -901, 911, -808, 213, 21]], [[1, -22, -43, 24, -35, -85, 86, 13, -98, 79, 56789, -11, 0, 6, 13, -33333, -33332, -98]], [[13579, -86420, -97531, 9, 30, -8, 7, -6, 5, 0, -4, 3, -203, -2, 45, 0, 22, -4]], [[161, 43, 912, 677, 766, 456798, 226, 56789, -15, -68, -987, -987]], [[-15, 854, 23412, 11124, -22, 3, 6114, -999, -876, 102, 3, -999]], [[142, 137, 203, 8934, -321, 8933, -23, -14, -53621, -53621, -22, -500]], [[-97531, -33333, -22222, -11111, 11111, -22223, 33334, 100000, 33333]], [[21, 30, -204, -206, 213, 161, -900, 915, 53, -77, -901, 911, -808, 911]], [[-33333, -22222, 22223, 38, 11111, 22222, 33333, 100000, 22222, 22222, 100001, 11111]], [[21, -22222, 456797, -206, 203, -900, 456798, 53, -901, 910, -206, -808]], [[21, 31, 853, 22, 31, -204, -809, 30, -206, 213, 161, -900, 915, 53, 101, -901, 911, -808, 916, -900, -809]], [[-33333, -22222, 22223, -11111, 22222, 33333, 100000, 22222, 22222]], [[21, -22222, 456797, 38, -206, 203, -900, 456798, -901, 910, 911, -808, 456797, -808]], [[789, 912, 677, -345, 456798, 226, 8934, 56789, -15, 24680, -986, 789, 677]], [[21, -22222, 456797, 38, -207, 203, -900, 456798, 53, -901, 9999999, 911, -808]], [[21, -22222, 38, -206, 213, 161, -900, 456798, 53, -901, 39, 911, -808, 37, 213, 213, 213, -808]], [[789, 912, 677, 766, 456798, 226, 8934, 56789, -15, -20, -986, 789, 677]], [[21, -22222, 38, -206, 213, 161, -900, 456798, 53, -901, 911, -808, 212, 213, 213, 213]], [[142, 137, 203, 8933, -321, -23, -53621, -53621, -500, -53621, 203]], [[-97531, -33333, -22222, 6745, 11111, 6745, 33333, 33333, -22222, 22222]], [[456, 854, 23413, 11124, -22, 3, 6114, -999, -14, 102, 456]], [[-97531, -33333, -22222, -11111, 11111, 22222, 33333, 100000, 33334]], [[21, -22222, 38, -206, 213, 161, -900, 456798, 53, 31, 911, -808, -22222]], [[-11111, 33332, -22222, -11111, 11111, 22222, 33333, 100000, 22222]], [[-97531, -33333, -22222, 11111, 22222, 33333, 100000, 100000]], [[142, 137, 203, 8934, -500, -321, -23, 8935, 76832, -53621, -53621, -500, 142, 142, -53621, -23, -500]], [[-97531, -33333, 6745, 11111, -97532, 22222, 457, -5, 33333, -18, 33333, -22222, 6745]], [[456, 855, 23413, 11124, -345, 6114, -999, -875, 101, 101]], [[142, 8934, -500, -321, 76832, -53621, -53622, -53621, -500]], [[1, -43, 24, -35, -85, 86, -98, 79, -11, 0, 6, 13, -33332, 86]], [[456, 854, 23413, 11124, 2, -22, 3, -20, -6, -999, -876, 102, 854, 853, -876, -37, 456]], [[-97531, -22223, -33333, -22222, -11111, -22222, 11111, -53621, 33333, 100000, -346, 33333, 11111, -53621]], [[21, -22222, 38, -205, 213, -900, 456798, 53, -901, 910, 213, -22222, -900, 53, -900, 213]], [[-346, 855, 23412, 11124, -345, 6114, 33334, -877, 101, 6114]], [[456, -344, 855, 11124, -345, 47, 6114, -999, -204, 101, 6114, 455, -345]], [[21, 31, 38, -204, -206, 161, -900, 915, 53, -77, 910, -901, 911, -808, -900, 910, 161]], [[-999, 456, 854, 23412, 11124, -22, 853, 3, 6114, -999, -876, 102, 3, 456]], [[21, 31, -40, 22, -204, -206, 21, 213, 161, -900, 915, 53, 37, -901, 911, 911, -204, 456797, -40, 22, 22]], [[-33333, -11111, 11111, 22222, 33333, 100000, -22222, -22222]], [[142, 137, 203, 755, 44, -321, -33, 27, 76832]], [[-999, 456, 854, 23412, 11124, -22, 4, 6114, -999, -876, 102, 3, 11124]], [[456, 854, 23413, 11124, -22, 678, 3, 6114, -999, -876, 102, 854, -876]], [[21, -22222, 38, -206, 213, 161, -900, 456798, 53, -901, 911, -808, 212, 213, 213, 213, 21, 911]], [[-97531, -33333, -22222, -11111, 11111, -53621, 33334, 100000]], [[0]], [[-12, -3, 0, 35, 998]], [[111, 222, 333, 444]], [[1, 2, 3, 4, 5, 6, 7, 8, 9]], [[-99999999, 99999999]], [[111111111, -111111111, 222222222, -222222222, 333333333, -333333333, 444444444, -444444444]], [[1, 10, 100]], [[-1, -10, -100]], [[1, -1, 10, -10, 100, -100]], [[2147483647, 2147483646, -2147483648, -2147483647]], [[21, 30, 38, -204, -206, 213, 161, -900, 915, 53, -77, -901, 911, -808, 21]], [[21, 30, 38, -204, -206, 213, 161, -900, 915, 53, -77, -901, 911, -68, -808, 21]], [[1, -22, -43, 24, -35, -57, -98, 79, -11, 0, 6, 13, -38, 0]], [[21, 30, 38, -204, -206, 213, 912, 161, -900, 915, 53, -77, -901, 911, -68, -808, 21]], [[1, -22, -43, 24, -35, -57, -98, 79, -11, 0, 6, -38, 0]], [[21, 30, 38, -204, -206, 213, 161, -900, 915, 53, -902, 911, -68, -808, 21, 915]], [[21, 30, 38, -204, -206, 213, 161, -900, 915, 53, -77, -901, 911, -808, -808]], [[-33333, -22222, -11111, 11111, 11111, 86, 22222, 33333, 100000]], [[-33334, -22222, -11111, 11111, 22222, 33333, 100000]], [[137, 203, 755, -500, -345, 28, -23, -23, 0, 76832, -53621]], [[1, -22, -43, 24, -35, -98, 79, -11, 0, 6, -53621, -38, 0]], [[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, -12, -13, -14, -15, -16, -17, -18, -19, -20, -21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, -32, -33, -34, -35, -36, -37, -38, -39, -40, -41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 29]], [[456, 855, 23413, 11124, -22, 11123, -345, 6114, -999, -876, 101, -345]], [[21, 30, 38, -204, -206, 213, 912, 161, -900, 915, -77, -901, 911, -68, -808, 21, 912]], [[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, -12, -13, -14, -15, -17, -18, -19, -20, -21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, -33, -34, -35, -36, -37, -38, -39, -40, -41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 29]], [[456, 855, 23413, 11124, -22, 11123, -345, 6114, -999, -876, 101, 766, 766]], [[21, 30, 38, -204, -206, 213, 161, -900, 915, 53, -77, 911, -68, -808, 21]], [[1, -22, -43, 24, -35, -57, 86, -98, 79, -11, 78, 0, 6, 13, -38]], [[1, -22, -43, 24, -35, -98, -11, 0, -86420, -53621, -38, 0]], [[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, -12, -14, -15, -16, -17, -18, -19, -20, -21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, -32, -33, -34, -35, -36, -37, -38, -39, -40, -41, 42, 43, 44, 45, 46, 47, 48, 49, 50, -14]], [[1, -22, -43, 24, -35, -57, 86, -98, 3, 79, -11, 78, 0, 6, 13, -38]], [[1, -22, -43, -15, 24, -35, -57, -98, 79, -11, -35, 0, 6, 13, -38, 0]], [[21, -77, 30, 38, -204, -206, 213, 912, 161, -900, 915, -77, -901, 911, -68, -808, 21, 912, 911, 21]], [[21, 30, 38, -204, 54, -206, 213, 161, -900, 915, 53, -77, -901, 911, -68, -808, 21]], [[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, -12, -14, -15, -16, -17, -18, -19, -20, -21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, -32, -33, -34, -35, -36, -37, -38, -39, -40, -41, 42, 43, 44, 45, 46, 47, 48, 49, 50, -14, 42]], [[-33333, -22222, -11111, 22222, 11111, 86, 22222, 33333, 100000]], [[456, -34, 855, 23413, 11124, -22, 11123, -345, 6114, -999, -876, 101, -345]], [[-33333, -22222, 22222, 11111, 86, 22222, 33333, 100000]], [[-33333, -22222, -11111, 11111, -999, 33333, 100000, 11111]], [[1, -22, 24, -35, -57, 86, -98, 79, -11, 0, 6, 13, -38]], [[1, -22, -43, 24, -35, -57, 86, -98, 79, -11, 0, 6, 13, -38, -11]], [[0, 9, -85, -129, 874, 6745, 8325, 67054, -816508, 9999999, -85]], [[-33334, -22222, -37, -11111, 11111, 22222, 33333, -53621]], [[1, -22, -43, 24, -35, -57, 86, -98, 79, -11, 0, 6, 13, -38, -11, -98]], [[1, -22, -43, 24, -98, 79, -11, 0, 6, -53621, -38, 0]], [[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, -12, -14, -15, -16, -17, -18, -19, 2, -21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, -32, -33, -34, -35, -36, -37, -38, -39, -40, -41, 42, 43, 44, 45, 46, 47, 48, 49, 50, -14, 42]], [[0, 9, -85, -129, 874, 6745, 8325, 67054, -816508, 9999999, -129]], [[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, -12, -14, -15, -16, -17, -18, -19, 2, -21, 22, 23, 24, 25, 26, 27, 28, 30, 30, 31, -32, -33, -34, -35, -36, -37, -38, -39, -40, -41, 42, 43, 44, 45, 46, 47, 48, 49, 50, -14, 42, 30]], [[21, 30, 38, 500, -206, 213, 161, -900, 915, 53, -77, -901, 911, -68, -808, 21]], [[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, -12, -14, -15, -16, -17, -18, -19, -20, -21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, -32, -33, -34, -35, -36, -37, -38, -39, -40, 78, 42, 43, 44, 45, 46, 47, 48, 49, 50, -14, 42]], [[-33333, -22222, -11111, 11111, 11111, 86, 22222, 33333, 100000, 33333, 100000]], [[1000, -1000, 200, 333, -200, 500, -500, 333, -333]], [[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, -12, -13, -14, -15, -16, -17, -18, -19, -20, -21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, -32, -33, -34, -35, -36, -37, -38, -39, -40, -41, 42, 43, 44, 46, 47, 48, 49, 50, 29]], [[24680, -86420, -97531, 9, -8, 7, -6, 5, 0, -4, 3, -2, 1]], [[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, -12, -14, -15, -16, -17, -18, -19, 2, -21, 22, 23, 24, 25, 26, 27, 28, 29, 30, -32, -33, -34, -35, -36, -37, -38, -39, -40, -41, 42, 43, 44, 45, 46, 47, 48, 49, 50, -14, 42]], [[21, 30, 38, -204, -206, 213, 161, -900, 915, 53, -77, -68, -808, 21]], [[21, 30, 38, -204, -206, 213, 161, -900, 915, -902, 911, 2, -68, -808, 21, 915]], [[789, 912, 677, 766, 456798, 226, 8934, 56789, -15, -68, 8934]], [[1, -22, -43, 24, -35, 11111, -98, 79, -11, 0, 6, -38, 0]], [[21, 29, 38, -204, -206, 213, 161, 456, -900, 915, 911, 2, -68, -808, 21, 915]], [[789, 912, 677, 766, 456798, -33334, 8934, 56789, -15, -68, 8934]], [[-33334, -22222, -37, -11111, 11111, 22222, 33333, -53621, -22222, -22222]], [[141, 137, 203, 755, -500, -321, -23, 0, 76832, -53621, 76832]], [[1, -22, -43, 24, -35, -57, 86, -98, 3, 79, -11, 78, 0, 6, 13, -38, 24]], [[21, 38, -204, -206, 213, 161, -900, 915, 53, -77, -901, 911, -68, -808, 21, 21]], [[21, 38, -204, -206, 161, -900, 915, 53, -77, -901, 911, -68, -808, 21, 21]], [[-33334, -22222, -37, -11111, 11111, 22222, 33333, -53621, -53621]], [[142, 137, 203, 755, -500, -321, -23, 0, 138, 76832, -53621, -23]], [[1, -22, -43, -35, -57, -98, 79, -11, 0, 6, 13, -38, 0]], [[21, 30, 38, -204, -206, 213, 161, -900, 915, 161, -902, 911, -68, -808, 21, 915]], [[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, -12, -14, -15, -16, -17, -18, -19, 2, -21, 22, 23, 24, 25, 26, 27, 28, 30, 30, 31, -32, -33, -34, -35, -36, -37, -38, -39, -41, 42, 43, 44, 45, 46, 47, 48, 49, 50, -14, 42, 30]], [[789, 912, 677, -86420, 456798, 226, 8934, 56789, -15, -68, 8934]], [[1, -22, -43, 24, -98, 79, -11, 0, 6, -53621, -38, 0, 24]], [[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, -12, -14, -15, -16, -17, -18, -19, -20, -21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, -32, -33, -34, -35, -36, -37, -38, -39, -40, -41, 42, 43, 44, 45, 46, 47, 48, 49, 50, -14, -37]], [[23, 1, -22, -43, -98, 79, -11, 0, 6, -53621, -38, 0, 24]], [[1, -22, -43, 24, -35, 11111, -98, 79, -11, 0, 6, -38, 0, -98]], [[-22, -43, 24, -98, 79, -11, 0, 6, -53621, -38, 0, 24]], [[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, -12, 28, -13, -14, -15, -16, -17, -18, -19, -20, -21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, -32, -33, -34, -35, -36, -37, -38, -39, -40, -41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 29]], [[21, 30, 38, -204, -206, 213, 161, -900, 914, -902, 911, 2, -68, -808, 21, 915, 915]], [[1, -22, -43, 24, -35, -57, -98, 79, -11, 0, 6, -38, 0, -43]], [[457, 855, 23413, 11124, -22, -345, 6114, -999, -876, 101]], [[21, 30, 38, -204, -206, 213, 161, -900, 914, -902, 911, 2, -68, -808, 21, 915, 915, -68, -900]], [[-33334, -37, -11111, 11111, 22222, 33333, -53622, -22222, -22222]], [[1, -22, -43, 24, -98, 79, -11, 0, -53621, -38, 0]], [[-22, -43, 24, -98, 79, -11, 0, -53621, -38, 0, 24]], [[456, 855, 11124, -22, -345, 6114, -999, -876, 101]], [[24680, -86420, -97531, 9, -8, 7, -6, 0, -4, 3, -2, 1]], [[24, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, -12, -13, -14, -15, -16, -17, -18, -19, -20, -21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, -32, -33, -34, -35, -36, -37, -38, -39, -40, -41, 42, 43, 44, 46, 47, 48, 49, 50, 29]], [[13, 1, -22, -43, 24, -35, -57, 86, -98, 79, -11, 0, 6, 13, -38, 0]], [[-33334, -22222, -37, -11111, 11111, 22223, -53621, -53621]], [[-33333, -11111, 11111, 11111, 86, 22222, 100000]], [[24680, -86420, -97531, 9, -8, 7, -6, 5, 0, -36, 3, -2, 1]], [[1, -22, -43, 24, -35, -57, 87, -98, 79, -11, 78, 0, 6, 13, -38]], [[21, 30, 38, -204, -206, 213, 161, -900, 915, 161, -902, 911, -68, -808, 21, 915, 915]], [[-33333, -22222, -11111, -57, 11111, 11111, 86, 22222, 11110, 33333, 100000, 100000, 100000]], [[24680, -86420, -97531, 9, -8, 7, -6, 0, 912, 3, -2, 1]], [[21, 38, -204, -206, 213, 161, -900, 915, 53, -77, 911, -68, -808, 21, 21]], [[21, 30, 38, -204, -206, 213, 161, -900, 914, 53, -77, -901, 911, -808, -808]], [[456, 855, -22, -345, 6114, -999, -876, 101, -999]], [[1, 2, 3, 4, 5, 6, 7, 8, 47, 9, 10, 11, -12, -13, -14, -15, -16, -17, -18, -19, -20, -21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, -32, -33, -34, -35, -36, -37, -38, -39, -40, -41, 42, 44, 13, 46, 47, 48, 49, 50, 29]], [[1000, -1000, 200, 333, -200, 500, -500, 333, -333, 200]], [[21, 30, 38, -204, -206, 213, 161, -900, 915, 53, -77, -901, 911, -68, -808, 21, -901]], [[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, -12, -14, -15, -16, -17, -18, -19, -20, -21, 28, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, -32, -33, -34, -35, -36, -37, -38, -39, -40, 78, 42, 43, 44, 45, 46, 47, 48, 49, 50, -14, 42]], [[21, 30, 37, -204, -206, 213, 161, -900, 915, 53, -77, -901, 911, -68, -808, 21]], [[1, -22, -43, 24, -35, 11111, -98, 79, -11, -41, 6, -38, 0, -98]], [[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, -12, -14, -15, -16, -17, -18, -19, 2, 13, -21, 23, 23, 24, 25, 26, 27, 28, 30, 30, 31, -32, -33, -34, -35, -36, -37, -38, -39, -40, -41, 42, 43, 44, 45, 46, 47, 48, 49, 50, -14, 42, 30]], [[789, 912, 677, -86420, 456798, 226, 8934, 788, 56789, -15, -68, 8934]], [[21, 30, 38, -204, -206, 213, 161, -900, 333, 53, -77, 911, -68, -808, 21, -206]], [[24680, -86420, -97531, 9, -8, 7, -6, 0, -4, 3, -2, 1, -2]], [[0, 9, -85, -129, 915, 6745, 8325, 67054, -816508, 9999999]], [[21, 30, 38, -204, -206, 213, 161, -900, 914, -902, 911, 2, -68, -808, 21, 915, 915, -68, -900, 2]], [[1, -22, -43, 24, -98, 79, -11, 0, -53621, -38, -38, 0]], [[-33333, -22222, -11111, 11111, 11111, 76832, 22222, 33333, 100000, 33333, 100000]], [[142, 137, 203, 755, -500, -321, -23, 0, 76832, -86420]], [[21, 30, 915, 38, -204, -206, 213, 161, -900, 915, 161, -902, 911, -68, -808, 21, 915, 915]], [[789, 912, 677, -11111, 766, 456798, -33334, 8934, 56789, -15, -68, 8934]], [[-86420, -97531, 9, -8, 7, -6, 0, -4, 3, -2, -2]], [[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, -12, -14, -15, -16, -17, -18, -19, -20, -21, 22, 23, 24, 25, 26, 28, 28, 29, 30, 31, -32, -33, -34, -35, -36, -37, -38, -39, -40, 78, 42, 43, 44, 45, 46, 47, 48, 49, 50, -14, 42]], [[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, -12, -13, -14, -15, -16, -17, -18, -19, -20, -21, 22, 23, 24, 25, 26, -500, 28, 29, 30, 31, -32, -33, -34, -35, -36, -37, -38, -39, -40, -41, 42, 43, 44, 46, 47, 48, 49, 50, 29]], [[21, 30, 915, 38, -204, -206, 213, 161, -900, 915, 161, -902, 911, -68, -808, 21, 915]], [[-86420, -97531, 9, -8, 7, -6, 137, -4, 3, -2, -2, -86420]], [[24680, -86420, -97531, -8, 7, -6, 0, -4, 3, -2, 1, -2]], [[1, 53, -43, 24, -98, 30, 79, -11, 0, 6, -53621, -38, -2]], [[-33334, -22222, -11111, 11111, 22222, 33333]], [[21, 30, 38, -204, -206, 213, 161, -900, 914, -902, 911, 2, -68, -41, 21, 915, 915]], [[1, 2, 3, 4, 5, 6, 7, 8, 788, 9, 10, 11, -12, -14, -15, -16, -17, -18, -19, 2, 13, -21, 23, 23, 24, 25, 26, 27, 28, 30, 30, 31, -32, -33, -34, -35, -36, -37, -38, -39, -40, -41, 42, 43, 44, 45, 46, 47, 48, 49, 50, -14, 42, 30]], [[1, -22, -43, 24, -35, -57, 86, -98, 3, 79, -11, 78, 0, 7, 13, -38]], [[1, -22, -43, -35, -57, -98, 79, -11, 0, 0, 6, 13, -38, 0]], [[1, -43, 24, -35, -57, 86, -98, 3, 79, -11, 78, 0, 6, 13, -38, 24]], [[-33334, -22222, -37, -11111, 11111, 22222, 33333, -53621, -22222]], [[855, -22222, -11111, 11111, 22222, 33333, 100000]], [[1, 2, 3, 4, 5, 6, 23413, 7, 8, 9, 10, 11, -12, -14, -15, -16, -17, -18, -19, -21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, -32, -33, -34, -35, -36, -37, -38, -39, -40, -41, 42, 43, 44, 45, 46, 47, 48, 49, 50, -14, 42, 30, -33]], [[24680, -86420, -97531, 9, -7, 7, -6, 0, 912, 3, -2, 1]], [[-22, -43, 24, -98, 79, -11, 0, -53622, -38, 0, -42, 24]], [[21, 38, -204, 213, 161, -900, 915, 53, -77, -901, 911, -68, -808, 21, 21]], [[142, 137, 203, 755, -500, -321, -23, 0, 76832, -86420, 203, 137]], [[456, 11124, -22, 677, 6114, -999, -876, 101]], [[789, 912, 677, 766, 456798, -33334, 8934, 56789, -15, -97531, 8934]], [[21, 30, 38, -204, -207, -900, 915, 53, -77, -901, 911, -808]], [[21, 30, 53, 38, -204, -206, 213, 161, -900, 914, -902, 911, 2, -68, 79, 21, 915, 915]], [[0, 54, -85, -129, 874, 6745, 8325, 67054, -816508, 9999999, -86]], [[789, 912, 915, 677, -86420, 456798, 227, 8934, 788, 56789, -15, -68, 8934]], [[1, -22, -43, 24, -35, -57, 86, -98, 79, -11, 0, 6, 13, -38, -11, 86]], [[1, -22, -43, 24, -98, 79, -11, 0, 6, -53621, 28, 0]], [[1, 2, 3, 44, 4, 5, 6, 7, 8, 9, 10, 11, -12, -13, -14, -15, -17, -18, -19, -20, -21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, -33, -34, -35, -36, -37, -38, -39, -40, -41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 4, 29]], [[142, 137, 203, 755, -500, -321, -23, 0, 76832, -53621, -500, 31, 0]], [[142, 137, 203, 755, -321, -23, 0, 76832, -53621, -500, 31, 0]], [[0, 54, -129, 874, 6745, 8325, 67054, -816508, 9999999, -86]], [[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, -12, -13, -14, -15, -16, -17, -18, -19, -20, -21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, -32, -33, -34, -35, -36, -37, -38, -39, -41, 42, 43, 44, 46, 47, 48, 49, 50, 29]], [[1, -22, -43, -43, 24, -35, -57, 86, -98, 3, 79, -11, 78, 0, 7, 13, 2, -38]], [[1, -22, -43, -86420, 24, -35, -57, 86, -98, 3, 79, -11, 78, 0, 6, 13, -38, 24]], [[-33333, -22222, -11111, 11111, 11111, 86, 86, 22222, 33333, 100000, 33333, 28, 100000]], [[142, 137, 203, 755, -500, -321, -23, 0, -53621]], [[0, 54, -129, 874, 6745, 67054, -816508, 9999999, -86]], [[141, 137, 203, 755, -500, -321, -23, 0, 76832, -53621, 76832, 203]], [[1, -22, -13, -35, -57, 86, -98, 79, -11, 1000, 6, 13, -38]], [[21, 30, 38, -204, -206, 213, 161, -900, 53, -77, -901, 911, -68, -808, 21]], [[1, -22, -43, -53620, 24, -98, 79, -11, 0, 6, -53621, -38, 0, 24]], [[1, -22, -43, 24, -35, 11111, -97, 79, -11, -41, 6, -38, 0, -98, 0]], [[-33333, -22222, -11111, 11111, 22222, 33333]], [[141, 137, 203, -207, -500, -321, -23, 0, 76832, -53621, 76832, 203]], [[789, 912, 677, 766, 456798, 226, 8934, 677, 56789, -15, -68, 8934]], [[21, 30, 38, -204, 54, -206, 213, 161, -900, 915, 53, -77, -901, 911, -68, -808, 21, 21]], [[21, 30, 915, 38, -204, -206, 213, 161, -900, 915, 161, -902, 911, 200, -808, 21, 915, 915]], [[1, -22, -13, -35, -57, 87, -98, 79, -11, 1000, 6, 13, -38]], [[21, 29, 38, 22, -204, -206, 213, 161, 456, -900, 915, 911, 2, -68, -808, 21, 915]], [[456, -34, 855, 23413, 11124, -22, 11123, -345, 6114, -999, -876, 101, -345, -345]], [[456, -34, 855, 23413, 11124, -22, 11123, -345, 6114, -999, -876, 101, 24, -345]], [[21, 30, 38, -204, -206, 213, 161, -900, 914, -902, -40, 2, -68, -808, 21, 915, 915, -68, -900, 21]], [[1, -22, -43, 24, -35, -57, 86, -98, 79, -11, 0, 6, 13, -38, -11, -98, 79]], [[21, 30, -204, -206, 213, 161, -900, 914, -902, 911, 2, -68, -808, 21, 915, 915, -68, -900, 2, 911, -204]], [[-86420, -97531, 9, -8, 7, -6, 0, -4, 3, -2, -2, -97531, 3]], [[13, 1, -22, -43, 24, -35, -57, 86, -98, 79, -11, 0, 6, 13, -38, 0, -11]], [[-33333, -22222, -11111, 11111, -999, 33333, 100000, 11111, 11111]], [[21, 38, -204, -206, 213, 161, -900, 915, 53, -77, 5, -901, 911, -68, -808, 21, 21]], [[24680, -86420, -97531, 9, -5, -7, 7, -6, 0, 912, 3, -2, 1]], [[855, -11111, 11111, 22222, 33333, 100000]], [[-33334, -22222, -37, -11111, 11111, 22222, 33333, -53621, -53621, -53621, -53621]], [[21, 30, 53, 38, -204, -206, 213, 500, 161, -900, -902, 911, 2, -68, 79, 21, 915, 915]], [[-33333, -22222, -11111, 755, -22223, 22222, 33333]], [[21, 29, 38, -204, -206, 213, 161, 456, -900, 915, 911, 2, -68, -808, 21, 915, 915]], [[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, -12, -14, -15, -16, -17, -18, -19, -20, -21, 22, 23, 24, 25, 26, 28, 28, 29, 30, 31, -32, -33, -34, 26, -35, -36, -37, -38, -39, -40, 78, 42, 43, 44, 45, 46, 47, 48, 49, 50, -14, 42]], [[-33333, -22222, -11111, 11111, 11111, 76832, 22222, 33333, 100000, 33333, 100000, -22222]], [[-33333, -22222, -11111, 22222, 33333, 100000, 33333]], [[1, -22, -43, 24, 79, -11, 0, 6, -53621, 28, 0]], [[21, 30, 915, 38, -204, -206, 213, 161, -900, 915, 161, -902, 911, -68, -808, 21, 915, 30]], [[21, 30, 6114, -204, -206, 213, 161, -900, 915, 53, -77, -901, 911, -808, -901]], [[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, -12, -14, -15, -16, -17, -18, -19, 2, 13, -21, 23, 23, 24, 25, 26, 27, 28, 30, 30, 31, -32, -33, -34, -35, -36, -37, -38, -39, -40, -41, 42, 43, 44, 45, 46, 47, 48, 49, 50, -14, 42, 30, 42]], [[21, 30, 38, -204, -206, 213, 161, -900, 915, 161, -902, 910, -68, -808, 21, 915, 915]], [[141, 137, 203, -207, -500, -321, -40, -23, 0, 76832, -53622, 76832, 203, -207]], [[1, 2, 3, 4, 5, 6, 8, 9, 10, 11, -12, -14, -15, -16, -17, -18, -19, -20, -21, 22, 23, 24, 25, 26, 28, 28, 29, 30, 31, -32, -33, -34, -35, -36, -37, -38, -39, -40, 78, 42, 43, 44, 45, 46, 47, 48, 49, 50, -14, 42, -12]], [[142, 137, -200, -501, 755, -500, -321, -23, 0, 76831, -86420, -321]], [[1, 2, 3, 44, -876, 4, 5, 6, 7, 8, 9, 10, 11, -12, -13, -14, -15, -17, -18, -19, -20, -21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, -33, -34, -35, -36, -37, -38, -39, -40, -41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 4, 29]], [[30, 38, -204, -206, 213, 161, -900, 914, -902, 911, 2, -68, -808, 21, 3, 915, 915, -68, -900]], [[1, -22, -43, 24, -35, -57, -36, 86, -98, 79, -11, 78, 0, 7, 13, 1, -38]], [[1, -43, 24, -35, -57, 86, -98, 3, 79, -11, 78, 6, 13, -38, 24]], [[1, 2, 3, 44, 4, 5, 6, 7, 8, 9, 10, 11, -12, -13, -14, -15, -17, 50, -18, -19, -20, -21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, -33, -34, -35, -36, -37, -38, -39, -40, -41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 4, 29]], [[1, -22, -808, -35, -57, -98, 79, -11, 0, 6, 13, -38, 0]], [[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, -12, -14, -15, -16, -17, -18, -19, 2, 13, -21, 23, 23, 24, 25, 26, 27, 28, 30, 30, 31, -32, -33, -34, -35, -11, -36, -37, -38, -39, -40, -41, 42, 43, 44, 45, 46, 47, 48, 49, 50, -14, 42, 30, -21]], [[21, 29, -32, -204, -206, 213, 161, 456, -900, 915, 911, 2, -68, -808, 21, 915, 915]], [[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, -12, -14, -15, -16, -17, -18, -19, -20, -21, 22, 23, 24, 25, 26, 28, 28, 29, 30, 31, -32, -33, -34, 26, -35, -36, -37, -38, -39, -40, 78, 42, 43, 44, 45, 46, 47, 49, 49, 50, -14, 42, 11]], [[1, -22, -43, -53622, -53620, 24, -98, 79, -11, 0, 6, -53621, -38, 0, 24]], [[-22, -43, 24, -98, 79, -11, 0, -53622, -38, 0, -42, 24, -53622]], [[141, 137, 11111, 203, -207, -500, 0, 141, 76832, -53621, 76832, 203]], [[-33334, -22222, -37, -11111, 11111, 22222, 33333, -53621, -22222, -22222, -22222]], [[13, 1, -22, -43, 24, -35, -57, 85, -98, 79, -11, 0, 6, 13, -38, 0, 1]], [[21, 30, -204, -206, 213, 161, -900, 914, -902, 911, 2, -68, -808, 21, 915, 915, -68, -900, 2, 788, -204]], [[1, 2, 3, 4, 5, 6, 7, 8, 47, 9, 10, 11, -12, -13, -14, -15, -16, -17, -18, -19, -20, -21, 23, 24, 25, 26, 27, 28, 29, 30, 31, -32, -33, -34, -35, -36, -37, -38, -39, -40, -41, 42, 44, 13, 46, 47, 48, 49, 50, 29]], [[855, -22222, -11111, 11111, 22222, 33333, 22222, -11111]], [[21, 30, 915, 38, -204, -206, 213, 161, -900, 914, 161, -902, 911, -68, -808, 21, 915, 915]], [[912, 677, -11111, 766, 456798, -33334, 8934, 56789, -15, -68, 8934]], [[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, -12, -14, -15, -16, -17, -18, -19, 2, -21, 22, 23, 24, 25, 26, 27, 28, 30, 30, 31, -32, -33, -34, -35, -36, -37, -38, -39, -41, 42, 43, 44, 45, 46, 47, 48, 49, 50, -14, 42, 30, 30]], [[456, -34, 855, 23413, 11124, -22, 11123, -345, 6114, -999, -876, 101, 24, -345, 6114]], [[456, -34, 855, 23413, 11124, -22, 11123, -345, 6114, -999, -876, 101, 24, 8, 6114]], [[21, 30, 53, -204, -206, 213, 500, 161, -900, -902, 2, -68, 79, 21, 915, 915, -900]], [[142, 137, 203, -500, -321, -23, 0, 76832, -53621, 137]], [[21, 30, 53, -204, -206, 213, 500, 161, -900, -902, 2, -68, 79, 21, 915, 915, -900, -900]], [[0, 10, -85, -129, 874, 6745, 8325, 67054, -816508, 9999999, -129, 9]], [[456, 855, 11124, -22, -345, -41, 6114, -999, -876, 101]], [[-86420, -97531, 9, -8, 7, -6, 0, -4, 3, -2, -2, -2]], [[137, -36, 203, 755, -501, -500, -345, 28, -23, -23, 0, 76832, -53621]], [[1, -22, -43, -43, 24, -35, -57, 86, -98, 3, 79, -11, 78, 0, 7, 13, 2, -21]], [[21, 30, 53, -204, -206, 213, 500, 161, -900, -902, 2, -68, 79, 20, 915, 915]], [[21, 53, -204, 213, 500, 161, -900, -902, 2, -68, 79, 21, 915, 915, -900]], [[1, 2, 3, 4, 5, 6, 7, 8, 9, 11, -12, -14, -15, -16, -17, -18, -19, -20, -21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, -32, -33, -34, -35, -36, -37, -38, -39, -40, 78, 42, 43, 44, 45, 46, 47, 48, 49, 50, -14, 42]], [[-33333, -22222, -11111, -999, 11111, -999, 33333, 100000, 11111, 11111]], [[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, -12, -14, -15, -16, -17, -18, -19, 2, -21, 22, 23, 24, 25, 26, 27, -17, 28, 30, 30, 31, -32, -33, -34, -35, -36, -37, -38, -39, -41, 42, 43, 44, 45, 46, 47, 48, 49, 50, -14, 42, 30, 30]], [[789, 912, 677, 766, 456798, -33334, 8934, 56789, 765, -15, -68, 8934]], [[21, 30, 38, 27, -204, -206, 213, 161, -900, 915, 161, -902, 910, -68, -808, -808, 21, 915, 915]], [[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, -12, -14, -22, -15, -16, -17, -18, -19, -20, -21, 28, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, -33, -34, -35, -36, -37, -38, -39, -40, 78, 42, 43, 44, 45, 46, 47, 48, 49, 50, -14, 42]], [[1, -22, -13, -35, -57, 86, -98, 79, -11, 1000, 6, 13, -38, -13]], [[1, -22, -35, -57, 85, 86, -98, 79, -11, 0, 6, 13, -38]], [[-33333, -22222, -11111, 11111, 11111, 86, 22222, 22222, 33333, 100000]], [[25, 1, -22, -43, 24, -35, -57, 86, -98, 3, 79, -11, 78, 0, 6, -37, 13, -38, 24]], [[1, 2, 3, 44, -876, 4, 457, 5, 6, 7, 8, 9, 10, 11, -12, -13, -14, -15, -17, -18, -19, -20, -21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, -33, -34, -35, -36, -37, -38, -39, -40, -41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 4, 29]], [[1, 2, 3, 44, -876, 4, 5, 6, 7, 8, 9, 10, 11, -12, -13, -14, -15, -17, -18, -19, -20, -21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, -33, -34, -35, -36, -37, -38, -53621, -40, -41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 4, 29]], [[1, 25, -22, -43, 24, -35, -57, 86, -98, 3, 79, -11, 78, 0, 7, 13, -38, 7]], [[142, 137, 203, -500, -321, -23, 0, 76832, -86420]], [[0, 9, -85, -129, 874, 8, 6745, 8325, 67054, 9999999, -85]], [[24680, -86420, -97531, 9, -204, -8, 7, -6, -4, 3, 1]], [[1, 200, -43, 24, -98, 79, -11, 0, 6, 28, 0, -98]], [[21, 38, -204, -206, 213, 161, -900, 915, 53, -77, -901, 911, -68, -808, 21, 21, 915, 38]], [[13, 1, -22, -43, 24, -35, -57, 86, -98, 79, -11, 0, 6, 13, -38, 0, -11, -11]], [[1000, -1000, 200, -200, 500, -500, 333, -333, -333]], [[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, -12, -13, -14, -15, -16, -17, -18, -19, -20, -21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, -32, -33, -34, -35, -36, -37, -38, -39, 79, -41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 29, 23]], [[21, 29, -32, -203, -206, 213, 161, 456, -900, 915, 911, 2, -68, -808, 21, 915]], [[21, 30, 38, -204, -206, 213, 161, -900, 914, -902, -40, 2, -68, -808, 21, 915, 915, -68, -900, 21, 213]], [[0, 9, 875, -85, -129, 874, 8, 6745, 8325, 67054, 9999999, -85]], [[21, 30, 161, 38, -204, -206, 213, 912, 161, -900, 915, 53, -77, -901, 911, -68, -808, 21]], [[-33333, -11111, -22222, -11111, 11111, 11111, 86, 22222, 33333, 100000, 33333, 100000]], [[21, 30, 53, -204, -206, 213, 500, 161, -900, 2, -68, 79, 21, 915, 915, -900, 2, 21]], [[25, 1, -22, -43, 24, -35, -22, -57, 86, -98, 3, 79, -11, 78, 0, 6, -37, 13, -38, 24]], [[21, 30, 38, -204, -206, 213, 161, -900, 915, 53, -77, -33333, -901, 911, -68, -808, 21]], [[137, 203, -500, -345, 28, -23, -23, 0, 76832, -53621, -500]], [[1, -22, -43, 24, -35, -98, -11, 0, -86420, -53621, 766, 0]], [[789, 912, 677, 456798, 226, 8934, 56789, -15, -68, 8934]], [[-22, -43, 24, -98, 79, -11, 0, -53621, -38, 0]], [[21, 30, 20, 38, -204, -206, 213, 161, -901, 915, 161, -902, 911, -68, -808, 21, 915]], [[21, 30, 38, -204, -206, 213, 161, -900, 915, 53, -77, -901, -11111, -68, -808, -902, 21, -901]], [[1, -22, -43, 24, -35, -57, -98, 79, -11, -1, 6, 13, -38, 0]], [[37, -22, 24, -98, 79, -11, 0, -53621, -38, -38, 1]], [[-33333, -22222, -11111, 11111, 11111, 76832, 22222, -53620, 33333, 100000, 33333, 100000]], [[0, 9, -85, -129, 8324, 874, 6745, 8325, 67054, -816508, 9999999]], [[-33333, -22222, -11111, 11111, 22222, 33333, -11111, 100000, 100000]], [[21, 30, 38, -204, -207, -900, 915, 53, -77, -901, 911, -808, 53]], [[21, 30, 38, -204, -206, 76831, 161, -900, 915, 161, -902, 910, -68, -808, 21, 915, 915]], [[-6, 1, -43, 24, -98, 79, -11, 0, -53621, -38, -38, 0]], [[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, -12, -13, -14, -15, -16, -17, -18, -11111, -20, -21, 44, 23, 23, 24, 25, 26, -500, 28, 29, 30, 31, -33, -34, -35, -36, -37, -38, -39, -40, -41, 42, 43, 44, 46, 47, 48, 49, 50, 29]], [[21, 30, 53, -204, -206, 500, 161, -900, 2, -68, 79, 21, 915, 915, -900, 2, 21]], [[21, 30, 20, 38, -204, -206, 213, 161, -901, 915, 161, -902, 911, -68, -808, 21, 915, 21]], [[1, 2, 3, 4, 5, 6, 7, 8, 9, 11, -12, -14, -15, -16, -17, -18, -19, -20, -21, 22, 23, 24, 25, 26, 27, 28, 29, 30, -32, -33, -34, -35, -36, -37, -38, -39, -40, 78, 42, 43, 44, 45, 46, 47, 48, 49, 50, -14, 42]], [[874, 0, 54, -129, 874, 6745, 8325, 67054, -816508, -86]], [[-33333, -22222, -11111, 22222, 11111, 86, 22222, 33333, 100000, 86]], [[1, -22, -43, 24, -35, -57, 86, -57, -98, 79, -11, 0, 6, 13, -38, -11]], [[21, 30, -204, -206, 213, 161, -900, 914, -902, 911, 2, -68, -808, 21, 915, -68, -900, 2, 788, -204]], [[21, 30, 38, 500, -206, 213, 161, -900, 915, 53, -77, -901, 911, -68, -808, 21, 161]], [[21, 915, 38, -204, -206, 213, 161, -900, 914, 161, -902, 911, -68, -808, 21, 915, 915]], [[13, 1, -22, -43, 24, -35, -57, 86, -98, 79, -11, 0, 6, 13, -38, 0, 13, 86]], [[30, 38, 500, -206, 213, 161, 8324, -900, 915, 53, -77, -901, 911, -68, -808, 21, 161, 911]], [[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, -12, -14, -15, -16, -17, -18, -19, -20, -21, 22, 23, 24, 25, 26, 28, 28, 29, 30, 31, -32, -33, -34, -35, -36, -37, -38, -39, -40, 78, 42, 43, 44, 45, 46, 48, 49, 50, -14, 42]], [[1000, -1000, 333, -200, 500, -500, 333, -333, 200]], [[21, 30, 38, 500, -206, 213, 161, -900, 915, 53, -77, 911, -68, -808, 49, 21]], [[141, 137, 203, -207, -500, -321, -808, -23, 0, 76832, -53621, 76832, 203]], [[99999, -33333, -11111, 755, -999, 33333, 100000, 11111, 100000]], [[1, -22, -43, 24, -35, -57, -36, 86, -98, 79, 0, -11, 78, 0, 7, 13, 1, -38]], [[21, 30, 53, -206, 213, 500, 161, -900, -902, 2, 79, 21, 915, 915, -900]], [[21, 30, 20, 38, -204, -206, 213, 161, -901, 915, 161, -902, 911, -68, -808, 21, 915, 38]], [[137, 203, -1, -500, -345, 28, -23, 200, -23, 0, 76832, -500]], [[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, -12, -14, -15, -16, -17, -18, -19, -20, -21, 28, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, -32, -33, -34, -35, -36, -37, -38, -39, -40, 78, 42, 43, 44, 45, 46, 47, 48, 49, 50, -14, 42, -21]], [[1, -22, -43, 24, -35, -57, 86, -98, 3, 79, -11, 78, 0, 7, 13, 2, -21]], [[21, 29, 38, 22, -204, 213, 161, 456, -900, 915, 911, 2, -68, -808, 21, 915]], [[1, -22, -77, -43, 24, -35, -57, 86, -57, -98, 79, -11, 0, 6, 13, -38, -11, 86]], [[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, -12, 28, -13, -14, -15, -16, -17, -18, -19, -20, -21, 22, 23, 24, 25, 26, 27, 28, 29, 31, -32, -33, -34, -35, -36, -37, -38, -39, -40, -41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 29]], [[21, 30, 53, -204, -206, 213, 500, 161, -900, -902, 2, -68, 79, 21, 915, 915, -900, -902]], [[1, -22, -43, 24, -35, 86, -98, 79, -11, 0, 6, 13, -38, -11]], [[13, 1, -22, -43, 24, -35, -57, 86, -98, 79, -11, 0, 6, 13, -38, 0, 13, 86, -35]], [[21, 38, -204, -206, 213, 161, -900, 914, 161, -902, 911, -68, -808, 21, 915, 915, 161]], [[-33333, -11111, -22222, -11111, 11111, 86, 22222, 33333, 100000, 33333, 100000]], [[21, 29, 213, 38, -204, -206, 213, 161, -900, 915, 911, 2, -68, -808, 21, 915, 915]], [[21, 30, 53, -204, -206, 213, 500, 855, -900, -902, 2, -68, 79, 21, 915, 915, 20, -900, -902]], [[1, 2, 3, 4, 5, 6, 7, 8, 47, 9, 10, 11, -12, -13, -14, -15, -16, -17, -18, -19, -20, -21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, -32, -33, -34, 49, -36, -37, -38, -39, -40, -41, 42, 44, 13, 46, 47, 48, 49, 50, 29, -36]], [[-33333, -22222, -11111, 11110, -22223, 22222, 33333]], [[1, -22, -43, 25, -35, -57, 86, -98, 79, 788, -11, 0, 6, 13, -38, -11]], [[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, -12, 28, -13, -14, -15, -16, -17, -18, -20, -21, 22, -34, 23, 24, 25, 26, 27, 28, 29, 30, 31, -32, -33, -34, -35, -36, -37, -38, -39, -40, -41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 29, 26]], [[21, 38, -204, -206, 213, 161, -900, 333, 53, -77, 911, -68, -808, 21, -206]], [[-86420, -97531, 9, -8, 7, -6, 0, -37, 3, -2, -2, -97531, 3]], [[789, 912, 677, 766, 456798, 226, 8934, 789, 56789, -15, -68, -987, 912]], [[1000, -1000, 200, 333, 334, -200, 500, -500, 333, -333]], [[1, -22, 11111, -43, 24, -35, -57, -36, 86, -98, 79, -11, 78, 0, 7, 13, 1, -38, -98]], [[1, -22, 24, -35, -98, -11, 0, -86420, -53621, -38, 0]], [[1, 2, 3, 44, -876, 4, 457, 5, 6, -902, 8, 9, 10, 141, -12, -13, -14, -15, -17, -18, -19, -21, -21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, -33, -34, -35, -36, -37, -38, -39, -40, -41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 4, 29, 30]], [[456, 855, 11124, -22, -344, -345, 6114, -999, -876, 101, -345]], [[1, 2, 3, 4, 5, 6, 7, 8, 9, 11, -12, -14, -15, -16, -17, -18, -19, -20, -21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, -32, -33, -34, -35, -36, -37, -38, -39, -40, 78, 42, 43, 44, 45, 49, -33333, 47, 48, 49, 50, -14, 42]], [[21, 30, 38, 500, -206, 213, 161, -900, 915, 53, -78, 911, -68, -808, 49, 21, 49]], [[1, 2, 3, 44, -876, 4, 5, 6, 7, 8, 9, 10, 11, -12, -13, -14, -15, -17, -18, -19, -20, -21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, -33, -34, -35, -36, -37, -38, -53621, -40, -41, 42, 43, 44, 45, 46, -876, 47, 48, 49, 50, 4, 29]], [[21, 30, 53, -206, 213, 500, 161, -900, -902, 2, 2, 79, 21, 915, 915, -900]], [[21, 30, 38, -204, -206, 213, 161, -900, 915, 53, -77, 911, -68, -808, 21, -901]], [[21, 30, 38, -204, -206, 213, 161, -900, 915, 161, -902, 911, -68, -808, 21, 915, 915, 213]], [[1, -22, -43, 24, -35, -57, 86, -98, 3, 79, -11, 78, 0, 6, 23, 13, -38, 24]], [[789, 912, 334, 915, 677, -86420, 456798, 227, 8934, 788, 56789, -15, -68, 8934]], [[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, -12, -14, -15, -15, -17, -18, -19, 2, 13, -21, 23, 23, 24, 25, 26, 27, 28, 30, 30, 31, -32, -33, -34, -35, -36, -37, -38, -39, -40, -41, 42, 43, 44, 45, 46, 47, 48, 49, 50, -14, 42, 30]], [[1, -22, -77, -43, -35, -57, 86, -57, -200, 79, -11, 0, 6, 37, 13, -7, -11, 86]], [[1, -22, -43, 24, -35, -98, -11, 0, -86420, -53621, -38, 0, 0]], [[1, -22, 11111, 24, -35, -57, -36, 86, 79, -11, 78, 0, 7, 13, 1, -38, -98]], [[-33333, -22222, -11111, 11111, 11111, 86, 86, 33333, 100000, 33333, 28, 100000]], [[21, 30, 38, -204, 54, -206, 213, 161, -900, 915, 53, -77, -901, 911, -68, -808, 21, 21, 911]], [[142, 137, 203, 755, -500, -321, -23, 0, 76832, -53621, -500, 31]], [[-22, -43, 24, -98, 79, -11, 0, -53621, -38, 1, 0]], [[203, -500, -206, 28, -23, -23, 0, 76832, -57, -500, -500]], [[21, 30, 915, 38, -204, -206, 213, -42, 161, -900, 914, 161, -902, 911, -68, -808, 21, 915, 915, 38]], [[21, 30, 20, 38, -204, -206, 213, 161, -901, 915, 161, -902, 911, -68, -809, 21, 915, 21]], [[1, -22, -43, 24, -98, 79, -11, 0, -15, -38, -38, 0]], [[13, 1, -22, -43, 24, -35, -57, 86, -98, 79, -11, 0, -33, 6, 13, -38, 0, 13, 0, 86, -35]], [[6114, 53, -43, 24, -98, -999, 30, 79, -11, 0, -53621, -38, -2]], [[-33333, -22222, -11111, -57, 11111, 11111, 86, 22222, 11110, 33333, 100000, 100000, 100000, 100000]], [[21, 29, 38, -204, -206, 213, 161, 456, -900, 915, 911, 2, -68, -808, 21, -206, 915]], [[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, -12, -14, -15, -16, -17, -18, -33, -19, -20, -21, 22, 23, 24, 25, 26, 28, 28, 29, 30, 31, -32, -33, -34, 26, -35, -36, -37, -38, -39, -40, 78, 42, 43, 44, 45, 46, 47, 49, 49, 50, -14, 42, 11]], [[1, -43, 24, -35, 86, -98, 3, 79, -11, 78, 6, 13, -38, 24]], [[1, -22, -43, 24, -35, -57, -98, -809, -11, 0, 6, -38, 0, -43]], [[24680, -86420, -97531, 9, -8, 7, -6, 5, 0, -36, 3, -2, 1, -97531]], [[24680, 213, -97531, 9, -8, 7, -6, 0, 912, -2, 1]], [[789, 912, 915, 677, -86420, 456798, 227, 8934, 788, 20, -15, -68, 8934, -86420]], [[456, -34, 855, 23413, 11124, -22, 11123, -345, 6114, -999, 31, 101, 24, 8, 6114]], [[789, 912, 677, 766, 456798, 226, 8934, 56789, -15, 8934]], [[-33333, -22222, -11111, 11112, 11111, 86, 22222, 22222, 33333, 100000]], [[1, -22, -43, 24, -23, -57, 86, -98, 79, 0, -11, 78, 0, 7, 13, 1, -38]], [[137, 203, -500, -345, 28, -23, 0, 76832, -53621, -500]], [[1, -22, -43, 24, -98, 79, -11, 0, -53621, -38, 0, -22]], [[1, -22, 9999999, -43, 24, -35, -57, 86, -98, 79, -11, 0, 6, 13, -38, -53621, -11]], [[1, -22, -43, 24, -35, -57, 86, -98, 79, -11, 0, 6, 13, -38, -11, 6]], [[21, 30, 38, -204, -206, 213, 161, -900, 914, -902, 911, 2, -68, -41, 21, -42, 915, 915]], [[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, -12, -14, -15, -16, -17, 914, -19, -20, -21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, -32, -33, -34, -35, -36, -37, -38, -39, -40, -41, 42, 43, 44, 45, 46, -1, 47, 48, 49, 50, -14, 42]], [''], [[2, 3, 4, 5, 6, 7, 8, 9, 10, 11, -12, -14, -22, -15, -16, -17, -18, -19, -20, -21, 28, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, -33, -34, -35, -36, -37, -38, -37, -39, -40, 78, 42, 43, 44, 45, 46, 47, 48, 49, 50, -14, 42]], [[789, 912, 915, 677, 677, -86420, 456798, 227, 8934, 788, 20, -15, -68, 8934, -86420]], [[1, -22, -43, 0, 24, -35, -57, 86, -98, 79, -11, -34, 6, 13, -38, -11, 86]], [[-22, -43, 24, -98, 79, -11, 0, -53621, -38, 0, -345]], [[21, 30, 38, -204, -206, 213, 161, -900, 915, 161, -902, -345, 910, -68, -808, 21, 915, 915]], [[-6, 1, -22, -43, 24, -57, 86, -98, 79, -11, 0, 6, 13, -38, -11, 6, 13]], [[-33333, -22222, -11111, -999, 11111, -999, 33333, 100000, 11111, 11111, 11111]], [[1, -22, -43, 24, 79, -11, 0, 6, 28, 0]], [[25, 1, -22, -43, 24, -35, -22, -57, 86, -98, 3, 79, -11, 78, 0, 6, -37, 13, -38, 24, -98]], [[1, -22, -43, 24, -23, -57, 86, -98, 79, 0, -11, 78, 0, 7, -86, 13, 1, -38]], [[456, -34, 855, 23413, 23412, 11124, -22, 11123, -345, 6114, -999, -876, 101, 24, 8, 6114]], [[142, 137, 203, 755, -500, -321, -23, 1, 0, 76832, -53621, -500, 31, 0]], [[789, 912, 677, 766, 456798, 226, 789, 56789, -15, -68, -987, 912]], [[1, -22, -43, 24, -35, 11110, -98, 79, -11, 0, 6, -38, 0]], [[21, 30, 38, 500, -206, 213, 161, -900, 915, 53, -77, -901, 911, -68, -808, 21, 161, 30]], [[21, 30, 38, -204, -206, 213, 161, -900, 914, -902, -40, 2, -68, -808, 915, 915, -68, -900, 21]], [[21, 30, 53, -206, 213, -43, 161, -900, -902, 2, 2, 79, 21, 915, 915, -900, 161]], [[141, 137, 202, -207, -500, -321, -808, -23, 0, 76832, -53621, 76832, 203]], [[30, 38, 500, -206, 213, 161, 8324, -900, 915, 53, -77, -901, 911, -68, -808, 8323, 21, 161, 911]], [[-33333, -22222, -11111, 11111, 11111, 86, 86, 33333, 11112, 100000, 33333, 28, 100000]], [[789, 912, 677, 456798, -33334, 8934, 56789, -15, -97531, 8934]], [[21, 29, 38, 22, -204, 213, 161, 456, 23, -900, 915, 911, 2, -68, -808, 21, 915]], [[456, -34, 855, 23413, 11124, -22, 11123, -345, 6114, -999, -876, 101, -345, -345, -345]], [[1, -77, -43, -35, -57, 86, -57, 53, -200, 79, -11, 0, 6, 86, 37, 13, -7, -11, 86]], [[1, 2, 3, 4, 5, 6, 7, 8, 9, 11, -12, -14, -15, -16, -17, 26, -18, -19, -20, -21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, -32, -33, -34, -35, -36, -37, -38, -39, -40, 78, 42, 43, 44, 45, 49, -33333, 47, 48, 49, 50, -14, 42, 29]], [[1, -22, -43, 24, -35, -57, -36, 86, -98, 79, 0, -11, 78, 915, 0, 7, 13, 1, -38, -43]], [[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, -12, -13, -14, -15, -16, -17, -18, -19, -20, -21, 22, 23, 10, 24, 25, 26, 27, 28, 29, 30, 31, -32, -33, -34, -35, -36, -37, -38, -39, 79, -41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 29, 23]], [[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, -12, -14, -15, -16, -17, -18, -19, 2, -21, 22, 23, 24, 25, 26, 27, 28, 30, 30, 31, -32, -33, -34, -35, -36, -37, -38, -39, -41, 42, 43, 44, 45, 46, 47, 49, 50, -14, 42, 30]], [[21, 30, 38, -204, -206, 76831, -900, 915, 161, -902, 910, -68, -808, 21, 915, 915]], [[21, 38, -204, -206, 213, 161, -899, 915, 161, -902, 911, -68, -987, -808, 21]], [[1000, -1001, 200, -200, 500, -500, 333, -333]], [[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, -12, -14, -15, -16, -17, -18, -33, -19, 912, -20, -21, 22, 23, 24, 25, 26, 28, 28, 29, 30, 31, -32, -33, -34, 26, -35, -36, -37, -38, -39, -40, 78, 42, 43, 44, 45, 46, 47, 49, 49, 50, -14, 42, 10]], [[-33333, -22222, -11111, 33334, 11112, -22223, 11111, 86, 22222, 22222, 33333, 100000]], [[-33333, -22222, -11111, 11111, 11111, 86, 22222, 912, 33333, 100000, 33333, 100000]], [[21, 30, 38, -204, -207, 33333, 915, 53, -77, -901, 911, -808, 53]], [[-33333, -22222, -11112, 11111, 22222, 33333, -11111, 100000, 100000]], [[21, 30, 53, -204, -206, 213, 500, 161, -900, -902, 2, -68, 79, 21, 915, 915, -900, -902, 21]], [[456, -34, 855, 23413, 11124, -22, 11123, -345, 6114, -999, -876, 101, 24, 8, 6114, 11124]], [[0, 54, 874, 6745, 8325, 67054, -816508, 9999999, -86]], [[21, 30, 38, -204, -206, 76831, 161, -900, -6, 915, 161, -902, 910, -68, -808, 21, 915, 915, -900]], [[456, 855, 23413, 11124, -22, -345, 6114, -999, 101]], [[21, 30, 38, -204, -206, 213, 161, -900, 914, 53, -77, -901, 911, -808, 1000, -808]]] 

Generations

claude-3-haiku-20240307. fail_base: True, fail_plus: True

  Here's the solution wrapped in a Python markdown block:

```python
def order_by_points(nums):
    """
    Write a function which sorts the given list of integers
    in ascending order according to the sum of their digits.
    Note: if there are several items with similar sum of their digits,
    order them based on their index in original list.

    For example:
    >>> order_by_points([1, 11, -1, -11, -12]) == [-1, -11, 1, -12, 11]
    >>> order_by_points([]) == []
    """
    return sorted(nums, key=lambda x: (sum(int(digit) for digit in str(abs(x))), x))

code-millenials-34b. fail_base: True, fail_plus: True

  def order_by_points(nums):
    return sorted(nums, key=lambda x: (sum(int(digit) for digit in str(abs(x))), nums.index(x)))

speechless-coding-7b-16k-tora. fail_base: True, fail_plus: True

  def order_by_points(nums):
    # Create a list of tuples where each tuple contains the number and its sum of digits
    nums_with_points = [(num, sum(int(digit) for digit in str(abs(num)))) for num in nums]

    # Sort the list of tuples first by the second element (sum of digits) and then by the first element (index in original list)
    nums_with_points.sort(key=lambda x: (x[1], nums.index(x[0])))

    # Return the sorted list of numbers
    return [num[0] for num in nums_with_points]


# Test the function
print(order_by_points([1, 11, -1, -11, -12]))  # Output: [-1, -11, 1, -12, 11]
print(order_by_points([]))  # Output: []

claude-3-opus-20240229. fail_base: True, fail_plus: True

  Here's the completed code wrapped in a Python markdown block:

```python
def order_by_points(nums):
    """
    Write a function which sorts the given list of integers
    in ascending order according to the sum of their digits.
    Note: if there are several items with similar sum of their digits,
    order them based on their index in original list.

    For example:
    >>> order_by_points([1, 11, -1, -11, -12]) == [-1, -11, 1, -12, 11]
    >>> order_by_points([]) == []
    """
    def digit_sum(num):
        return sum(int(digit) for digit in str(abs(num)))

    return sorted(nums, key=lambda x: (digit_sum(x), nums.index(x)))

mixtral-8x7b-instruct. fail_base: True, fail_plus: True

  from functools import total_ordering

@total_ordering
class DigitSum:
    def __init__(self, num):
        self.num = num
        self.digit_sum = sum(int(digit) for digit in str(abs(num)))

    def __eq__(self, other):
        if isinstance(other, DigitSum):
            return self.digit_sum == other.digit_sum and self.num == other.num
        return NotImplemented

    def __lt__(self, other):
        if isinstance(other, DigitSum):
            return self.digit_sum < other.digit_sum
        return NotImplemented

def order_by_points(nums):
    return sorted(nums, key=DigitSum)

# Test cases

mixtral-8x22b-instruct-v0.1. fail_base: True, fail_plus: True

  def order_by_points(nums):
    """
    Write a function which sorts the given list of integers
    in ascending order according to the sum of their digits.
    Note: if there are several items with similar sum of their digits,
    order them based on their index in original list.

    For example:
    >>> order_by_points([1, 11, -1, -11, -12]) == [-1, -11, 1, -12, 11]
    >>> order_by_points([]) == []
    """
    # Calculate the sum of digits for each number and store it along with the index
    digit_sums = [(i, sum(int(digit) for digit in str(num) if digit != '-')) for i, num in enumerate(nums)]

    # Sort the list based on the sum of digits and index
    digit_sums.sort(key=lambda x: (x[1], x[0]))

    # Extract the sorted numbers from the sorted list
    sorted_nums = [nums[i] for i, _ in digit_sums]

    return sorted_nums

# Test cases
assert order_by_points([1, 11, -1, -11, -12]) == [-1, -11, 1, -12, 11]
assert order_by_points([]) == []

code-llama-multi-34b. fail_base: True, fail_plus: True

  
def order_by_points(nums):
    """
    Write a function which sorts the given list of integers
    in ascending order according to the sum of their digits.
    Note: if there are several items with similar sum of their digits,
    order them based on their index in original list.

    For example:
    >>> order_by_points([1, 11, -1, -11, -12]) == [-1, -11, 1, -12, 11]
    >>> order_by_points([]) == []
    """
    return sorted(nums, key=lambda x: (sum(int(i) for i in str(x)), nums.index(x)))


if __name__ == '__main__':
    import doctest
    doctest.testmod()

Qwen--Qwen1.5-72B-Chat. fail_base: True, fail_plus: True

  def order_by_points(nums):
    def sum_of_digits(num):
        return sum(int(digit) for digit in str(abs(num)))

    return sorted(nums, key=sum_of_digits, reverse=False)

# Test cases

mistral-large-latest. fail_base: True, fail_plus: True

  Sure, I can help with that. Here's a Python function that should solve the problem:

```python
def order_by_points(nums):
    """
    Write a function which sorts the given list of integers
    in ascending order according to the sum of their digits.
    Note: if there are several items with similar sum of their digits,
    order them based on their index in original list.

    For example:
    >>> order_by_points([1, 11, -1, -11, -12]) == [-1, -11, 1, -12, 11]
    >>> order_by_points([]) == []
    """
    def sum_of_digits(num):
        return sum(int(digit) for digit in str(abs(num)))

    return sorted(nums, key=lambda num: (sum_of_digits(num), nums.index(num)))
```

This function first defines a helper function `sum_of_digits` that calculates the sum of the digits of a number. It then sorts the input list `nums` using a key that is a tuple of the sum of the digits and the index of the number in the original list. This ensures that numbers with the same sum of digits are ordered by their original index.

HuggingFaceH4--starchat2-15b-v0.1. fail_base: True, fail_plus: True

  def order_by_points(nums):
    """
    Write a function which sorts the given list of integers
    in ascending order according to the sum of their digits.
    Note: if there are several items with similar sum of their digits,
    order them based on their index in original list.

    For example:
    >>> order_by_points([1, 11, -1, -11, -12]) == [-1, -11, 1, -12, 11]
    >>> order_by_points([]) == []
    """
    def sum_of_digits(n):
        return sum(int(digit) for digit in str(abs(n)))

    return sorted(nums, key=lambda x: (sum_of_digits(x), nums.index(x)))

# Test cases
assert order_by_points([1, 11, -1, -11, -12]) == [-1, -11, 1, -12, 11]
assert order_by_points([]) == []

codegemma-7b. fail_base: True, fail_plus: True

  def order_by_points(nums):
    def sum_digits(n):
        return sum(int(d) for d in str(abs(n)))

    return sorted(nums, key=sum_digits)

print(order_by_points([1, 11, -1, -11, -12]))
print(order_by_points([]))

code-llama-multi-13b. fail_base: True, fail_plus: True

  
def order_by_points(nums):
    """
    Write a function which sorts the given list of integers
    in ascending order according to the sum of their digits.
    Note: if there are several items with similar sum of their digits,
    order them based on their index in original list.

    For example:
    >>> order_by_points([1, 11, -1, -11, -12]) == [-1, -11, 1, -12, 11]
    >>> order_by_points([]) == []
    """
    return sorted(nums, key=lambda x: (sum(int(i) for i in str(abs(x))), x))


def order_by_points(nums):
    """
    Write a function which sorts the given list of integers
    in ascending order according to the sum of their digits.
    Note: if there are several items with similar sum of their digits,
    order them based on their index in original list.

    For example:
    >>> order_by_points([1, 11, -1, -11, -12]) == [-1, -11, 1, -12, 11]
    >>> order_by_points([]) == []
    """
    return sorted(nums, key=lambda x: (sum(int(i) for i in str(abs(x))), x))


def order_by_points(nums):
    """
    Write a function which sorts the given list of integers
    in ascending order according to the sum of their digits.
    Note: if there are several items with similar sum of their digits,
    order them based on their index in original list.

    For example:
    >>> order_by_points([1, 11, -1, -11, -12]) == [-1, -11, 1, -12, 11]
    >>> order_by_points([]) == []
    """
    return sorted(nums, key=lambda x: (sum(int(i) for i in str(abs(x))), x))


def order_by_points(nums):
    """
    Write a function which sorts the given list of integers
    in ascending order according to the sum of their digits.
    Note: if there are several items with similar sum of their digits,
    order them based on their index in original list.

    For example:
    >>> order_by_points([1, 11, -1, -11, -12]) == [-1, -11, 1, -12, 11]
    >>> order_by_points([]) == []
    """
    return sorted(nums, key

deepseek-coder-6.7b-instruct. fail_base: True, fail_plus: True

  Here is the Python function in a markdown style code block:

```python
def order_by_points(nums):
    """
    Write a function which sorts the given list of integers
    in ascending order according to the sum of their digits.
    Note: if there are several items with similar sum of their digits,
    order them based on their index in original list.

    For example:
    >>> order_by_points([1, 11, -1, -11, -12]) == [-1, -11, 1, -12, 11]
    >>> order_by_points([]) == []
    """
    return sorted(nums, key=lambda x: (sum(int(i) for i in str(abs(x))), nums.index(x)))
```

This function works by first converting each number to a string, then iterating over each character in the string to convert it back to an integer and summing them. The `sorted` function is then used to sort the list of numbers based on these sums. If two numbers have the same sum, the index of the first occurrence of the number in the original list is used to break ties.

open-hermes-2.5-code-290k-13b. fail_base: True, fail_plus: True

  
def order_by_points(nums):
    def sum_of_digits(n):
        return sum(int(digit) for digit in str(n))

    return sorted(nums, key=lambda x: (sum_of_digits(x), nums.index(x)))

speechless-coder-ds-6.7b. fail_base: True, fail_plus: True

  def order_by_points(nums):
    def sum_of_digits(n):
        return sum(int(digit) for digit in str(abs(n)))

    return sorted(nums, key=lambda x: (sum_of_digits(x), nums.index(x)))

codegemma-7b-it. fail_base: True, fail_plus: True

  def order_by_points(nums):
    """
    Write a function which sorts the given list of integers
    in ascending order according to the sum of their digits.
    Note: if there are several items with similar sum of their digits,
    order them based on their index in original list.

    For example:
    >>> order_by_points([1, 11, -1, -11, -12]) == [-1, -11, 1, -12, 11]
    >>> order_by_points([]) == []
    """
    if not nums:
        return []

    def get_sum(num):
        sum = 0
        for digit in str(num):
            sum += int(digit)
        return sum

    nums.sort(key=get_sum)
    return nums

deepseek-coder-33b. fail_base: True, fail_plus: True

  
def order_by_points(nums):
    """
    Write a function which sorts the given list of integers
    in ascending order according to the sum of their digits.
    Note: if there are several items with similar sum of their digits,
    order them based on their index in original list.

    For example:
    >>> order_by_points([1, 11, -1, -11, -12]) == [-1, -11, 1, -12, 11]
    >>> order_by_points([]) == []
    """
    return sorted(nums, key=lambda x: (sum(int(d) for d in str(abs(x))), x))

mistralai--Mistral-7B-Instruct-v0.2. fail_base: True, fail_plus: True

  
def order_by_points(nums):
    """
    Write a function which sorts the given list of integers
    in ascending order according to the sum of their digits.
    Note: if there are several items with similar sum of their digits,
    order them based on their index in original list.

    For example:
    >>> order_by_points([1, 11, -1, -11, -12]) == [-1, -11, 1, -12, 11]
    >>> order_by_points([]) == []
    """
def order_by_points(nums):
    """
    Write a function which sorts the given list of integers
    in ascending order according to the sum of their digits.
    Note: if there are several items with similar sum of their digits,
    order them based on their index in original list.
    """
    def digit_sum(num):
        return sum(int(digit) for digit in str(abs(num)))

    nums.sort(key=lambda x: (digit_sum(x), nums.index(x)))
    return nums

# Test cases

xwincoder-34b. fail_base: True, fail_plus: True

  
def order_by_points(nums):
    """
    Write a function which sorts the given list of integers
    in ascending order according to the sum of their digits.
    Note: if there are several items with similar sum of their digits,
    order them based on their index in original list.

    For example:
    >>> order_by_points([1, 11, -1, -11, -12]) == [-1, -11, 1, -12, 11]
    >>> order_by_points([]) == []
    """
    def sum_of_digits(n):
        return sum(int(digit) for digit in str(abs(n)))

    return sorted(nums, key=lambda x: (sum_of_digits(x), nums.index(x)))

# Test cases
print(order_by_points([1, 11, -1, -11, -12]))  # Output: [-1, -11, 1, -12, 11]
print(order_by_points([]))  # Output: []

code-13b. fail_base: True, fail_plus: True

  def order_by_points(nums):
    """
    This function sorts the given list of integers
    in ascending order according to the sum of their digits.
    If there are several items with similar sum of their digits,
    order them based on their index in original list.
    """

    # Calculate the sum of the digits for each number
    sums = [sum(int(digit) for digit in str(num)) for num in nums]

    # Combine the numbers and their sums into a list of tuples
    # and sort it based on the sum and the original index
    sorted_nums = sorted(zip(nums, sums), key=lambda x: (x[1], x[0]))

    # Extract the sorted numbers and return the result
    return [num for num, _ in sorted_nums]


# Test the function
print(order_by_points([1, 11, -1, -11, -12]))  # [-1, -11, 1, -12, 11]
print(order_by_points([]))  # []

wizardcoder-15b. fail_base: True, fail_plus: True

  Here's the Python script for the problem:

```python
def order_by_points(nums):
    """
    Write a function which sorts the given list of integers
    in ascending order according to the sum of their digits.
    Note: if there are several items with similar sum of their digits,
    order them based on their index in original list.

    For example:
    >>> order_by_points([1, 11, -1, -11, -12]) == [-1, -11, 1, -12, 11]
    >>> order_by_points([]) == []
    """
    def sum_of_digits(num):
        return sum(int(digit) for digit in str(abs(num)))

    nums_with_points = [(num, sum_of_digits(num)) for num in nums]
    nums_with_points.sort(key=lambda x: (x[1], nums.index(x[0])))
    return [num for num, _ in nums_with_points]
```

The `order_by_points` function takes a list of integers as input and returns a sorted list of integers based on the sum of their digits. The function first defines a helper function `sum_of_digits` which takes an integer as input and returns the sum of its digits. It then creates a list of tuples, where each tuple contains an integer from the input list and its corresponding sum of digits. This list is sorted based on the sum of digits in ascending order, and if there are several items with the same sum of digits, they are sorted based on their index in the original list. Finally, the function returns a list of integers, where each integer is the first element of a tuple in the sorted list of tuples.

mistral-7b-codealpaca. fail_base: True, fail_plus: True

  
def order_by_points(nums):
    """
    Write a function which sorts the given list of integers
    in ascending order according to the sum of their digits.
    Note: if there are several items with similar sum of their digits,
    order them based on their index in original list.

    For example:
    >>> order_by_points([1, 11, -1, -11, -12]) == [-1, -11, 1, -12, 11]
    >>> order_by_points([]) == []
    """
    def sum_of_digits(n):
        return sum(int(digit) for digit in str(abs(n)))

    return sorted(nums, key=lambda x: (sum_of_digits(x), nums.index(x)))

deepseek-coder-33b-instruct. fail_base: True, fail_plus: True

  Here is the Python function implemented in a markdown style code block:

```python
def order_by_points(nums):
    """
    Write a function which sorts the given list of integers
    in ascending order according to the sum of their digits.
    Note: if there are several items with similar sum of their digits,
    order them based on their index in original list.

    For example:
    >>> order_by_points([1, 11, -1, -11, -12]) == [-1, -11, 1, -12, 11]
    >>> order_by_points([]) == []
    """
    def sum_of_digits(n):
        return sum(int(digit) for digit in str(abs(n)))

    return sorted(nums, key=lambda x: (sum_of_digits(x), nums.index(x)))
```

This function first defines a helper function `sum_of_digits` that calculates the sum of the digits of a number. It then sorts the input list `nums` based on the sum of the digits of each number and the index of the number in the original list. The `sorted` function in Python is stable, which means that when multiple records have the same key, their original order is preserved. This is why we can use `nums.index(x)` as a secondary sorting key to preserve the original order of items with the same sum of digits.
<|EOT|>

phi-2. fail_base: True, fail_plus: True

  
def order_by_points(nums):
    """
    Write a function which sorts the given list of integers
    in ascending order according to the sum of their digits.
    Note: if there are several items with similar sum of their digits,
    order them based on their index in original list.

    For example:
    >>> order_by_points([1, 11, -1, -11, -12]) == [-1, -11, 1, -12, 11]
    >>> order_by_points([]) == []
    """
    return sorted(nums, key=lambda x: (sum(int(digit) for digit in str(x)), nums.index(x)))


if __name__ == '__main__':
    import doctest
    doctest.testmod()

bigcode--starcoder2-15b-instruct-v0.1. fail_base: True, fail_plus: True

  def order_by_points(nums):
    """
    Write a function which sorts the given list of integers
    in ascending order according to the sum of their digits.
    Note: if there are several items with similar sum of their digits,
    order them based on their index in original list.

    For example:
    >>> order_by_points([1, 11, -1, -11, -12]) == [-1, -11, 1, -12, 11]
    >>> order_by_points([]) == []
    """
    def sum_of_digits(num):
        sum_of_digits = 0
        while num != 0:
            digit = num % 10
            sum_of_digits += digit
            num //= 10
        return sum_of_digits

    def sort_key(num):
        return (sum_of_digits(num), nums.index(num))

    return sorted(nums, key=sort_key)

white-rabbit-neo-33b-v1. fail_base: True, fail_plus: True

  def order_by_points(nums):
    def sum_digits(num):
        return sum(int(digit) for digit in str(abs(num)))

    # Sort the list based on the sum of digits and the original index
    return sorted(nums, key=lambda x: (sum_digits(x), nums.index(x)))

# Test the function
print(order_by_points([1, 11, -1, -11, -12]))  # Should print [-1, -11, 1, -12, 11]
print(order_by_points([]))  # Should print []

microsoft--Phi-3-mini-4k-instruct. fail_base: True, fail_plus: True

  def order_by_points(nums):
    """
    Sorts the given list of integers in ascending order according to the sum of their digits.
    If there are several items with similar sum of their digits, orders them based on their index in the original list.

    :param nums: List of integers
    :return: Sorted list of integers

    >>> order_by_points([1, 11, -1, -11, -12])
    [-1, -11, 1, -12, 11]
    >>> order_by_points([])
    []
    """
    # Helper function to calculate the sum of digits of a number
    def sum_of_digits(n):
        return sum(int(digit) for digit in str(abs(n)))

    # Sort the list using a custom key
    sorted_nums = sorted(nums, key=lambda x: (sum_of_digits(x), nums.index(x)))

    return sorted_nums


# Test cases

speechless-codellama-34b. fail_base: True, fail_plus: True

  def order_by_points(nums):
    """
    Sorts the given list of integers in ascending order according to the sum of their digits.
    """
    # Create a list of tuples, where each tuple contains an integer and its sum of digits
    nums_with_points = [(num, sum(int(digit) for digit in str(abs(num)))) for num in nums]
    
    # Sort the list of tuples based on the sum of digits, and then by index in the original list
    sorted_nums = sorted(nums_with_points, key=lambda x: (x[1], nums.index(x[0])))
    
    # Extract the sorted integers from the list of tuples
    sorted_nums = [num for num, points in sorted_nums]
    
    return sorted_nums
```

Explanation:
- The function `order_by_points` takes a list of integers `nums` as input.
- It creates a list of tuples `nums_with_points`, where each tuple contains an integer and its sum of digits.
- It then sorts the list of tuples based on the sum of digits, and then by index in the original list.
- Finally, it extracts the sorted integers from the list of tuples and returns them.

meta-llama-3-70b-instruct. fail_base: True, fail_plus: True

  def order_by_points(nums):
    return [x for _, x in sorted((sum(int(digit) for digit in str(abs(num))), idx, num) for idx, num in enumerate(nums))]

print(order_by_points([1, 11, -1, -11, -12]))  # [-1, -11, 1, -12, 11]
print(order_by_points([]))  # []

code-llama-70b-instruct. fail_base: True, fail_plus: True

  def order_by_points(nums):
    def sum_of_digits(n):
        return sum(int(digit) for digit in str(abs(n)))

    return sorted(nums, key=lambda x: (sum_of_digits(x), nums.index(x)))


if __name__ == "__main__":
    print(order_by_points([1, 11, -1, -11, -12]))
    print(order_by_points([]))

opencodeinterpreter-ds-33b. fail_base: True, fail_plus: True

  ```python
def order_by_points(nums):
    def sum_digits(n):
        return sum(int(digit) for digit in str(abs(n)))

    return sorted(nums, key=lambda x: (sum_digits(x), nums.index(x)))

openchat. fail_base: True, fail_plus: True

  def order_by_points(nums):
    # Define a helper function to calculate the sum of digits
    def sum_of_digits(n):
        return sum(int(digit) for digit in str(abs(n)))

    # Sort the list based on the sum of digits and index
    sorted_nums = sorted(nums, key=lambda x: (sum_of_digits(x), nums.index(x)))
    return sorted_nums

# Test cases
print(order_by_points([1, 11, -1, -11, -12]))  # Output: [-1, -11, 1, -12, 11]
print(order_by_points([]))  # Output: []

deepseek-coder-7b-instruct-v1.5. fail_base: True, fail_plus: True

  def order_by_points(nums):
    """
    Write a function which sorts the given list of integers
    in ascending order according to the sum of their digits.
    Note: if there are several items with similar sum of their digits,
    order them based on their index in original list.

    For example:
    >>> order_by_points([1, 11, -1, -11, -12]) == [-1, -11, 1, -12, 11]
    >>> order_by_points([]) == []
    """
    if not nums:
        return []

    def sum_of_digits(n):
        return sum(int(digit) for digit in str(abs(n)))

    return sorted(nums, key=lambda x: (sum_of_digits(x), nums.index(x)))

# Test cases
print(order_by_points([1, 11, -1, -11, -12]))  # should return [-1, -11, 1, -12, 11]
print(order_by_points([]))  # should return []

speechless-starcoder2-7b. fail_base: True, fail_plus: True

  def order_by_points(nums):
    # Calculate the sum of digits for each number
    sums = [sum(int(digit) for digit in str(num)) for num in nums]

    # Sort the list of sums in ascending order
    sorted_sums = sorted(sums)

    # Create a dictionary to map the sorted sums to their original indices
    sorted_indices = {sum: index for index, sum in enumerate(sorted_sums)}

    # Sort the original list based on the sorted sums
    sorted_nums = [nums[sorted_indices[sum]] for sum in sorted_sums]

    return sorted_nums

wizardcoder-7b. fail_base: True, fail_plus: True

  Here's the Python script for the given problem:

```python
def order_by_points(nums):
    """
    Sorts the given list of integers in ascending order according to the sum of their digits.
    If there are several items with similar sum of their digits, order them based on their index in original list.
    """
    def sum_of_digits(num):
        """
        Helper function to calculate the sum of digits of a number.
        """
        return sum(int(digit) for digit in str(abs(num)))

    # Sort the list based on the sum of digits and index in original list
    return sorted(nums, key=lambda x: (sum_of_digits(x), nums.index(x)))

# Test cases
print(order_by_points([1, 11, -1, -11, -12])) # Output: [-1, -11, 1, -12, 11]
print(order_by_points([])) # Output: []
```

Explanation:

The `order_by_points` function takes a list of integers as input and returns a new list sorted in ascending order based on the sum of their digits. If there are several items with the same sum of digits, it sorts them based on their index in the original list. The `sum_of_digits` function is a helper function that takes a number as input and returns the sum of its digits. The `sorted` function is used to sort the list based on the sum of digits and index of the number in the original list. The `key` parameter is used to specify the sorting criteria. The lambda function is used to pass the `sum_of_digits` and `nums.index(x)` as the sorting criteria. The `abs` function is used to ensure that negative numbers are also considered. 

octocoder. fail_base: True, fail_plus: True

  
def order_by_points(nums):
    """
    Write a function which sorts the given list of integers
    in ascending order according to the sum of their digits.
    Note: if there are several items with similar sum of their digits,
    order them based on their index in original list.

    For example:
    >>> order_by_points([1, 11, -1, -11, -12]) == [-1, -11, 1, -12, 11]
    >>> order_by_points([]) == []
    """

    return sorted(nums, key=lambda x: sum(map(int, str(abs(x)))))

gemma-1.1-7b-it. fail_base: True, fail_plus: True

  def order_by_points(nums):
    """
    Write a function which sorts the given list of integers
    in ascending order according to the sum of their digits.
    Note: if there are several items with similar sum of their digits,
    order them based on their index in original list.

    For example:
    >>> order_by_points([1, 11, -1, -11, -12]) == [-1, -11, 1, -12, 11]
    >>> order_by_points([]) == []
    """
    if not nums:
        return []

    nums.sort(key=lambda x: sum(int(digit) for digit in str(x)), reverse=True)
    return [x for x in nums if x not in seen]
    seen = set()
    for i, num in enumerate(nums):
        if num in seen:
            continue
        seen.add(num)
        nums[i] = (num, i)
    return sorted(nums, key=lambda x: x[1])

gpt-3.5-turbo. fail_base: True, fail_plus: True

  Here is the code to solve the problem:

```python
def order_by_points(nums):
    def sum_of_digits(num):
        return sum(int(digit) for digit in str(abs(num)))

    return sorted(nums, key=lambda num: (sum_of_digits(num), nums.index(num)))
```

This code defines a helper function `sum_of_digits` that calculates the sum of digits for a given number. The `order_by_points` function then uses the `sorted` function to sort the input list `nums` based on the sum of digits of each number. If two numbers have the same sum of digits, the `nums.index(num)` expression is used as a tiebreaker to maintain the original order.

You can test the function with the provided test cases:

```python
print(order_by_points([1, 11, -1, -11, -12]))  # Output: [-1, -11, 1, -12, 11]
print(order_by_points([]))  # Output: []
```

codebooga-34b. fail_base: True, fail_plus: True

  
def order_by_points(nums):
    """
    Write a function which sorts the given list of integers
    in ascending order according to the sum of their digits.
    Note: if there are several items with similar sum of their digits,
    order them based on their index in original list.

    For example:
    >>> order_by_points([1, 11, -1, -11, -12]) == [-1, -11, 1, -12, 11]
    >>> order_by_points([]) == []
    """
    return sorted(nums, key=lambda x: (sum(int(digit) for digit in str(abs(x))), nums.index(x)))

deepseek-coder-1.3b-instruct. fail_base: True, fail_plus: True

  Here is the implementation of the function in Python:

```python
def order_by_points(nums):
    """
    Write a function which sorts the given list of integers
    in ascending order according to the sum of their digits.
    Note: if there are several items with similar sum of their digits,
    order them based on their index in original list.

    For example:
    >>> order_by_points([1, 11, -1, -11, -12]) == [-1, -11, 1, -12, 11]
    >>> order_by_points([]) == []
    """

    def sum_of_digits(n):
        return sum(int(digit) for digit in str(n))

    return sorted(nums, key=lambda n: (sum_of_digits(n), nums.index(n)))
```

This function first defines a helper function `sum_of_digits` that calculates the sum of the digits of a number. Then, it uses the `sorted` function to sort the list of numbers. The `sorted` function uses a `key` argument that specifies a function of one argument that is used to extract a comparison key from each element in the list. In this case, the key is a tuple where the first element is the sum of the digits of the number and the second element is the index of the number in the original list. The `sorted` function then sorts the list based on these keys.

speechless-mistral-7b. fail_base: True, fail_plus: True

  def order_by_points(nums):
    def sum_of_digits(n):
        return sum(int(digit) for digit in str(abs(n)))

    nums.sort(key=lambda x: (sum_of_digits(x), nums.index(x)))
    return nums
```

This Python script defines a function `order_by_points` that takes a list of integers as input and returns a new list sorted in ascending order according to the sum of their digits. If there are multiple items with the same sum of digits, they are ordered based on their original index in the list.

The function uses a helper function `sum_of_digits` to calculate the sum of the digits of each number. The `sort` method is then called on the input list, with a key function that returns a tuple containing the sum of digits and the original index of each number. This ensures that the items are sorted first by the sum of their digits and then by their original index.

xdan-l1-chat. fail_base: True, fail_plus: True

  def order_by_points(nums):
    def sum_of_digits(n):
        return sum(int(digit) for digit in str(n))

    sorted_indices = sorted(range(len(nums)), key=lambda i: (sum_of_digits(nums[i]), i))
    return [nums[i] for i in sorted_indices]

solar-10.7b-instruct. fail_base: True, fail_plus: True

  
def order_by_points(nums):
    """
    Write a function which sorts the given list of integers
    in ascending order according to the sum of their digits.
    Note: if there are several items with similar sum of their digits,
    order them based on their index in original list.

    For example:
    >>> order_by_points([1, 11, -1, -11, -12]) == [-1, -11, 1, -12, 11]
    >>> order_by_points([]) == []
    """
def order_by_points(nums):
    # Create an empty list to store the sorted numbers
    sorted_nums = []

    # Create a dictionary to store numbers and their sum of digits
    digit_sums = {}

    # Iterate through the input list
    for num in nums:
        # Calculate the sum of digits for each number
        digit_sum = sum([int(digit) for digit in str(abs(num))])

        # Add the number and its digit sum to the dictionary
        # If the digit sum already exists, append the number to the list of numbers with that sum
        if digit_sum in digit_sums:
            digit_sums[digit_sum].append(num)
        else:
            digit_sums[digit_sum] = [num]

    # Sort the dictionary values based on their keys (digit sums)
    sorted_digit_sums = sorted(digit_sums.items(), key=lambda item: item[0])

    # Iterate through the sorted dictionary and add the numbers to the sorted list
    for digit_sum, nums_list in sorted_digit_sums:
        for num in nums_list:
            sorted_nums.append(num)

    return sorted_nums

claude-3-sonnet-20240229. fail_base: True, fail_plus: True

  ```python
def order_by_points(nums):
    """
    Write a function which sorts the given list of integers
    in ascending order according to the sum of their digits.
    Note: if there are several items with similar sum of their digits,
    order them based on their index in original list.

    For example:
    >>> order_by_points([1, 11, -1, -11, -12]) == [-1, -11, 1, -12, 11]
    >>> order_by_points([]) == []
    """
    def sum_digits(num):
        return sum(int(digit) for digit in str(abs(num)))

    sorted_nums = sorted(nums, key=lambda x: (sum_digits(x), nums.index(x)))
    return sorted_nums

# Test cases
print(order_by_points([1, 11, -1, -11, -12]) == [-1, -11, 1, -12, 11])
print(order_by_points([]) == [])

code-33b. fail_base: True, fail_plus: True

  
def order_by_points(nums):
    """
    Write a function which sorts the given list of integers
    in ascending order according to the sum of their digits.
    Note: if there are several items with similar sum of their digits,
    order them based on their index in original list.

    For example:
    >>> order_by_points([1, 11, -1, -11, -12]) == [-1, -11, 1, -12, 11]
    >>> order_by_points([]) == []
    """

    # Create a helper function to calculate the sum of digits
    def sum_of_digits(n):
        return sum(int(digit) for digit in str(abs(n)))

    # Use sorted() function with a custom key to sort the list
    # The key is a lambda function that returns a tuple of the sum of digits and the index of the element
    return sorted(nums, key=lambda x: (sum_of_digits(x), nums.index(x)))

# Test cases
print(order_by_points([1, 11, -1, -11, -12]))  # should return [-1, -11, 1, -12, 11]
print(order_by_points([]))  # should return []

starcoder2-15b-oci. fail_base: True, fail_plus: True

  
def order_by_points(nums):
    """
    Write a function which sorts the given list of integers
    in ascending order according to the sum of their digits.
    Note: if there are several items with similar sum of their digits,
    order them based on their index in original list.

    For example:
    >>> order_by_points([1, 11, -1, -11, -12]) == [-1, -11, 1, -12, 11]
    >>> order_by_points([]) == []
    """

    # Your code here
    pass

# Test your function

speechless-starcoder2-15b. fail_base: True, fail_plus: True

  def order_by_points(nums):
    # Create a list of tuples where each tuple contains the sum of digits of the number and the number itself
    # Sort the list of tuples in ascending order based on the sum of digits
    # Extract the numbers from the sorted list of tuples
    return [num for _, num in sorted((sum(int(digit) for digit in str(num))), num) for num in nums)]

python-code-13b. fail_base: True, fail_plus: True

  def order_by_points(nums):
    # calculate sum of digits for each number
    sums = [sum(int(digit) for digit in str(num)) for num in nums]
    # create a list of tuples (sum, index) for each number
    tuples = [(sum, i) for i, num in enumerate(nums)]
    # sort the list of tuples by sum and index
    sorted_tuples = sorted(tuples, key=lambda x: (-x[0], x[1]))
    # extract the sorted list of numbers from the sorted tuples
    sorted_nums = [num for _, num in sorted_tuples]
    return sorted_nums

opencodeinterpreter-ds-6.7b. fail_base: True, fail_plus: True

  ```python
def order_by_points(nums):
    def sum_of_digits(n):
        return sum(int(digit) for digit in str(abs(n)))

    return sorted(nums, key=lambda x: (sum_of_digits(x), nums.index(x)))

# Testing the function
print(order_by_points([1, 11, -1, -11, -12]))  # Expected output: [-1, -11, 1, -12, 11]
print(order_by_points([]))  # Expected output: []
```