#include <iostream>
#include <string>
using namespace std;
int main() {
int n;
string s;
cin >> n >> s;
string x, o, v;
int a = s.size();
for (char c : s) {
if (c >= 'a' && c <= 'z') {
x += c;
} else if (c >= 'A' && c <= 'Z') {
v += c;
} else {
o += c;
}
}
cout << x << o << v << endl;
}
// 64 位输出请用 printf("%lld")

京公网安备 11010502036488号