In this task, you are given an input list A. You need to extract and sort the unique digits used in the list in ascending order. Return -1 if there is no digit in the list.

Input: Consider Input: ['y', 'v', '311', 'f', '273']

Output: 1, 2, 3, 7


Input: Consider Input: ['a', '55', 's', '71', '271', '211']

Output: 1, 2, 5, 7


Input: Consider Input: ['l', '419', 'p', '63', '69', 'm', '433', '417', '47']


Output: 1, 3, 4, 6, 7, 9