#include <bits/stdc++.h>
using namespace std;
bool cmp(int a,int b)
{
1;//return true;
}
int main() {
int a[]={4,7,5,6,3,8,6,3,4,7,5,6,3,8,6,3,4,7,5,6,3,8,6,3};
sort(a,a+24,cmp);
for(int i=0;i<24;i++)cout<<a[i]<<" ";cout<<endl;
return 0;
}
I2luY2x1ZGUgPGJpdHMvc3RkYysrLmg+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CmJvb2wgY21wKGludCBhLGludCBiKQp7CgkxOy8vcmV0dXJuIHRydWU7Cn0KaW50IG1haW4oKSB7CglpbnQgYVtdPXs0LDcsNSw2LDMsOCw2LDMsNCw3LDUsNiwzLDgsNiwzLDQsNyw1LDYsMyw4LDYsM307Cglzb3J0KGEsYSsyNCxjbXApOwoJZm9yKGludCBpPTA7aTwyNDtpKyspY291dDw8YVtpXTw8IiAiO2NvdXQ8PGVuZGw7CglyZXR1cm4gMDsKfQ==