Module: (Python) Processing data in a loop. Anchoring


Problem

13 /13


* The two largest digits are 3

Problem

Given a natural number N. Determine the digits of the number that are greater than the rest of the digits. Print two such digits in non-increasing order (the second digit is less than or equal to the first).  

Input 
The input is a single number N (10 <= N <= 109).

Imprint 
Output the answer to the problem.

 

Examples
# Input Output
1 45545 5 5
2 1113 3 1
3 444 4 4