Bob has been provided a string of size containing lowercase characters. He took two empty strings, and , and performed the following operations:
Bob can perform the above operations any number of times. After some operations, he wants to get the string and empty, and string should be lexicographically minimum.
Your task is to help Bob find the lexicographically minimum possible string that can be formed.
Input Format:
Output format:
For each test case, print the lexicographically minimum possible string that can be formed.
Constraints:
will be a lowercase english character.
For the first test case:
First, we will append char at the end of string and then pop it and append at the end of string .
Then we append char , , and at string and pop them one by one to get the final string .
For the second test case:
Here string of length one and there is no other combination possible hence the answer is the string .