#include #include #include #include using namespace std; #define cerr cerr << "[DBG] " #define DBG(x) cerr << #x << ": " << x << endl // http://genkisugimoto.com/jp/blog/procon/2015/04/15/print-debug-technique-in-cpp.html template ostream& operator<<(ostream& s, const pair& p) {return s << "(" << p.first << ", " << p.second << ")";} template ostream& operator<<(ostream& s, const vector& v) { for (int i = 0; i < (int)v.size(); ++i) { s << v[i]; if (i < (int)v.size() - 1) s << "\t"; } return s; } typedef long long ll; int main(){ int n; cin >> n; vector a(2*n); for(int i=0; i<2*n; i++){ cin >> a[i]; } sort(a.begin(),a.end()); // dry int index = 0; int rindex = 2*n-1; int c_dry = 0; while(index 0){ c_wet+=1; index+=1; rindex-=1; } else{ index+=1; } } // moist index = 0; rindex = 2*n-1; int c_moist = 0; while(index 0){ rindex-=1; } } cout << c_dry << " " << c_wet << " " << c_moist << endl; return 0; }