#include <iostream>
#include <cstdio>
#include <cstring>
#define MAXN 10000
using namespace std;
int main()
{
char str[MAXN], temp;
gets(str);
for(int i = 0; i < strlen(str); ++i)
{
for(int j = i + 1; j < strlen(str); ++j)
{
if(str[i]>str[j])
{
temp = str[i];
#include <cstdio>
#include <cstring>
#define MAXN 10000
using namespace std;
int main()
{
char str[MAXN], temp;
gets(str);
for(int i = 0; i < strlen(str); ++i)
{
for(int j = i + 1; j < strlen(str); ++j)
{
if(str[i]>str[j])
{
temp = str[i];