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, ['161', 'Z', '5715', '9755', '2855', 'P']

Output: 161, Z, 5715


Input: Consider Input: 2, ['t', '8531', 'e', '8317', '2747']

Output: t, 8531, e


Input: Consider Input: 2, ['6387', 'g', 'J', '7951', '99']


Output: 6387, g, J