#000297

Reci

Luke and Mark are playing a game. The goal of the game is to find the lexicographically smallest string from a given string.(construct a string from all characters from a given string).


InputGiven a string (length <=80 ).

OutputThe first line contains a string which is lexicographically smallest.

Input
pas
Output
aps

Submit solution

Sign in to submit a solution.