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.

Ex Input:
['k', '373', 'b', '305', 'i', 'n', 'z', 'm', 'c']

Ex Output:
0, 3, 5, 7


Ex Input:
['219', 'v', '295', '291', 'n', 'a', '133', 'a', 'y', 'i', 'e', '235', '461']

Ex Output:
1, 2, 3, 4, 5, 6, 9


Ex Input:
['c', '201', 'y', '183', '319', '165', 'u', 'a', '249']

Ex Output:

0, 1, 2, 3, 4, 5, 6, 8, 9