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:
['189', 'z']

Ex Output:
1, 8, 9


Ex Input:
['o', 'f', 'x', '239']

Ex Output:
2, 3, 9


Ex Input:
['35', 'k', '379', '239', 'u', 'v', '163', 'r', '369']

Ex Output:

1, 2, 3, 5, 6, 7, 9