Олимпиадный тренинг

Задача 38812. How many different numbers and which ones?


Value of expression \(11 \cdot 15^{65} + 18 \cdot 15^{38} – 14 \cdot 15^{17} + 19 \cdot 15^{ 11} + 18338\) was written in base 15. 
Print in the first line, separated by one space, the digits in ascending order that occur in the resulting number (for digits greater than 9, use large English letters). The second line contains the number of different digits used to write the resulting number.