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:
['e', 's', '153', 'e', '377', 'c', 'v', '437']

Ex Output:
1, 3, 4, 5, 7


Ex Input:
['s', 'd']

Ex Output:
-1


Ex Input:
['q', '205', '73', '325']

Ex Output:

0, 2, 3, 5, 7