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

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


Ex Input:
['o', 'e', '187', '153', 'a', '253', 'f']

Ex Output:
1, 2, 3, 5, 7, 8


Ex Input:
['e', '359', 'j', '453', '287', '249', 'e', '29', 'k', '331', '227', '235', '249']

Ex Output:

1, 2, 3, 4, 5, 7, 8, 9