*Two biggest digits
Problem
Given a natural number
N
(
\(N<=10^9\)). Determine the two largest digits of a number.
Input
The input is a single number (the number contains at least 2 different digits).
Imprint
Print two space-separated digits, first the largest digit of the number, then the second largest (not equal to the first largest digit).
Examples
# |
Input |
Output |
1 |
45545 |
5 4 |
2 |
1113 |
3 1 |
Запрещенные операторы: list
; [
; sort