You will be given a definition of a task first, then some input of the task.
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.

5, ['7877', '1385', 'i', 'x', 'y', '6741', '9615', 'u', 'n', 'N', '7665', '4085', 'K', '7393', 'M', '6513', '2411', '9613', 'Q', '1727', '4179']
Output:
7877, 1385, i, x, y, 6741, 9615, u, n, N, 7665, 4085, K, 7393, M, 6513