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: ['411', '367']

Output: 1, 3, 4, 6, 7


Input: Consider Input: ['z', '209']

Output: 0, 2, 9


Input: Consider Input: ['o', 'a', '371', 'p', 'm', 'p', '3', '453', '297']


Output: 1, 2, 3, 4, 5, 7, 9