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: 4, ['S', '9397', '3571', '6173', '5707', '3343', 'L', '1371', '1485', '605']

Output: S, 9397, 3571, 6173, 5707, 3343

Input: Consider Input: 9, ['6213', '5491', '9761', 'L', '3875', 'I', '8323', 'G', 'N', '1499', 'h', '8975', '6511', 'g', 'b', 'N', 'g', '8115', 'Y', 'j', 'h', '9215', '401', '701', 't']

Output: 6213, 5491, 9761, L, 3875, I, 8323, G, N, 1499, h, 8975, 6511, g, b, N

Input: Consider Input: 9, ['5295', '9971', '265', 'M', '5201', 'U', '4179', '2393', '1483', '5247', 'w', '1051', '6835', '4949', '7545', 'X', '1045', 'v', 'Z', 'Z', 'I', '4979', '7521', '5357', 'm', 'h', '1603', '129', 'i', '2269']
Output: 5295, 9971, 265, M, 5201, U, 4179, 2393, 1483, 5247, w, 1051, 6835, 4949, 7545, X, 1045, v, Z, Z, I