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: 1, ['5091', 'B', 'f', '6415']
Example Output: 5091, B, f

Example Input: 3, ['8109', '3725', '4809', 'n', '1761', 'u', '7147']
Example Output: 8109, 3725, 4809, n

Example Input: 1, ['4887', 'P', 'K', '4299', 'x']
Example Output:
4887, P, K, 4299