#include<iostream>
using namespace std;
int main(){
int a[5]={5,1,4,3,2},b[5]={1,2,3,4,5};
for(int i=0;i<5;i++){
for(int j=0;j<5;j++){
if(a[b[i]]>a[b[j]]){
int temp;
temp=b[i];
b[i]=b[j];
b[j]=temp;
}
}
}
for(int i=0;i<5;i++){
cout<<b[i];
}
}
I2luY2x1ZGU8aW9zdHJlYW0+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CgppbnQgbWFpbigpewoJaW50IGFbNV09ezUsMSw0LDMsMn0sYls1XT17MSwyLDMsNCw1fTsKCWZvcihpbnQgaT0wO2k8NTtpKyspewoJCWZvcihpbnQgaj0wO2o8NTtqKyspewoJCQlpZihhW2JbaV1dPmFbYltqXV0pewoJCQkJaW50IHRlbXA7CgkJCQl0ZW1wPWJbaV07CgkJCQliW2ldPWJbal07CgkJCQliW2pdPXRlbXA7CgkJCX0KCQl9Cgl9Cglmb3IoaW50IGk9MDtpPDU7aSsrKXsKCQljb3V0PDxiW2ldOwoJfQoJCn0=