/* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
{
// your code goes here
int []arr = {1,12,23,45,5,5};
int tmp =0;
for (int i=0;i<arr.length;i++){
for (int j = i+1;j<arr.length;j++){
if(arr[i] > arr[j]){
tmp = arr[i];
arr[i]=arr[j];
arr[j]=tmp;
}
}
}
for (int i=0;i<arr.length;i++){
}
}
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgovKiBOYW1lIG9mIHRoZSBjbGFzcyBoYXMgdG8gYmUgIk1haW4iIG9ubHkgaWYgdGhlIGNsYXNzIGlzIHB1YmxpYy4gKi8KY2xhc3MgSWRlb25lCnsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKSB0aHJvd3MgamF2YS5sYW5nLkV4Y2VwdGlvbgoJewoJCS8vIHlvdXIgY29kZSBnb2VzIGhlcmUKCQlpbnQgW11hcnIgPSB7MSwxMiwyMyw0NSw1LDV9OwoJICAgIGludCBtYXggPSBJbnRlZ2VyLk1JTl9WQUxVRTsKCSAgICBpbnQgdG1wID0wOwoJICAgIGZvciAoaW50IGk9MDtpPGFyci5sZW5ndGg7aSsrKXsKCSAgICAgICAgZm9yIChpbnQgaiA9IGkrMTtqPGFyci5sZW5ndGg7aisrKXsKCSAgICAgICAgICAgIGlmKGFycltpXSA+IGFycltqXSl7CgkgICAgICAgICAgICAgICAgdG1wID0gYXJyW2ldOwoJICAgICAgICAgICAgICAgIGFycltpXT1hcnJbal07CgkgICAgICAgICAgICAgICAgYXJyW2pdPXRtcDsKCSAgICAgICAgICAgIH0KCSAgICAgICAgfQoJICAgIH0KCSAgICBmb3IgKGludCBpPTA7aTxhcnIubGVuZ3RoO2krKyl7CgkgICAgICAgIFN5c3RlbS5vdXQucHJpbnRsbihhcnJbaV0pOwoJICAgIH0gCgl9Cn0=