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.

Example Input: 5, ['845', 'w', 'b', 'M', '8983', '1591', 'n', 'i', '9817', '1397', '5085', 'p', '503', 'o', '953', '3705', 'D']
Example Output: 845, w, b, M, 8983, 1591, n, i, 9817, 1397, 5085, p

Example Input: 5, ['l', '1473', '6251', '1565', '4141', '1871', 's', 'v', 'y', 'd', '2539', '1435', '6661', '1285', '6317', '9047', '2543', 'u', '3483', 'y', '8777', 'y', '4333', 'C']
Example Output: l, 1473, 6251, 1565, 4141, 1871, s, v, y, d, 2539, 1435, 6661, 1285, 6317, 9047, 2543, u, 3483

Example Input: 9, ['J', '2623', '1703', 'x', '213', 'l', '3235', '1257', '2133', '8261', 'a', 's', '7425', '8185', '1851', '1845', 'e', 'n', '7967', '2309']
Example Output:
J, 2623, 1703, x, 213, l, 3235, 1257, 2133, 8261, a