#include <string>
#include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
// 分别储存小写、数字、大写
string small="";
string num="";
string big="";
string s;
cin >> s;
// 遍历给定的字符串,并储存字符至对于的字符串中
for(char c:s){
if (48<=c && c<=57){
num += c;
}else if (65<=c && c<=90) {
big += c;
}else {
small += c;
}
}
// 按照规定输出
cout << small << num << big;
}
// 64 位输出请用 printf("%lld")

京公网安备 11010502036488号