LearnPy Hub
← Arena
AdvancedRating 1600

Largest Number

Arrange the non-negative integers to form the largest possible number and print it (no leading zeros except the single number 0).

Input

n, then n integers.

Output

A number.

Sample 1

Input
2
10 2
Output
210

Sample 2

Input
5
3 30 34 5 9
Output
9534330
solution.py
Output appears here
Largest Number · Python Arena problem · LearnPy Hub