In this task, you are given inputs i and A, where i is an integer and A is a list. You need to list all the elements of A preceding the last i elements. i will always have a value less than the length of A.

Input: Consider Input: 3, ['9165', 'N', 'f', '5277', 'J', 'g', '833', '3227']

Output: 9165, N, f, 5277, J


Input: Consider Input: 5, ['h', '1845', 't', '45', 'N', 'j', '4161', 'n', 'I', 'Y', '4091', 'W', 'y', 'C', 'i', 'H', 'd', 'E', '5529', 'e']

Output: h, 1845, t, 45, N, j, 4161, n, I, Y, 4091, W, y, C, i


Input: Consider Input: 6, ['h', '2157', '8213', 'b', 'A', 'a', '2535', '9839', 'a', '6957', '9971', 'u']


Output: h, 2157, 8213, b, A, a