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:
['437', '377']

Ex Output:
3, 4, 7


Ex Input:
['51', '461', '343', '15', '209', '51']

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


Ex Input:
['f', 'a', 'c', '265', '31', '437', 'y', 'g', 'a', '353', 'f', '197', '295', '303', '233']

Ex Output:

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