#include<string> #include<iostream> #include <algorithm> int main() { using std::cin; using std::cout; using std::endl; using std::sort; int t; cin>>t; int* ptr= new int[t]; int* result= new int[t]; for(int i =0 ; i<t ; i++) { cin>>ptr[i]; result[i]=0; } int a[6]; int b[6]; for(int i=0; i<t ;i++) {