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 Q]: ['s', '391', 'z', '67', '371', '195', '77', '373', 'g', '249', 'm']
[EX A]: 1, 2, 3, 4, 5, 6, 7, 9

[EX Q]: ['d', '395', 'd', '233', '271']
[EX A]: 1, 2, 3, 5, 7, 9

[EX Q]: ['f', '307', 'e', '481', '401', 'u', 'a', '377', '333', '473', '135', '249']
[EX A]:
0, 1, 2, 3, 4, 5, 7, 8, 9