class Solution:
    # @param A : list of integers
    # @param B : list of integers
    # @return a list of list of integers
    def solve(self, A, B):
        result = []
        # for i in B:
        #     a = A[:]
        #     while i > 0:
        #         temp = a.pop(0)
        #         a.append(temp)
        #         i -= 1
        #     result.append(a)
        return result
if __name__ == '__main__':
    print(Solution.solve(Solution,[1, 2, 3, 4, 5],[2,3]))