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, ['7835', '8157', 'q', '1331', '9025', '8057', '1681', '4049', '5333', 'H', '8769', 'h', 'y']

Output: 7835, 8157, q, 1331, 9025, 8057, 1681, 4049, 5333, H

Input: Consider Input: 5, ['555', 'x', '7843', 'C', '5791', 'i', '841', '5189', '3321', 'B', '9865', 'r']

Output: 555, x, 7843, C, 5791, i, 841

Input: Consider Input: 14, ['H', '4835', '5547', 'O', '8677', 'm', '6065', '8003', '5003', 'f', 'P', 'r', 'd', '1143', 'w', 'y', 'N', '2671', '9385', 'Z', 'e', '6359', '2041', '1623', '5881', '1031', '977', 'n', '6465', 'x']
Output: H, 4835, 5547, O, 8677, m, 6065, 8003, 5003, f, P, r, d, 1143, w, y