In natural number N struck out some of his figures so as to obtain the largest natural number with different digits. What is this number?
Integer N (1 ≤ N ≤ 10^100).
The answer to the problem.