#include #include using namespace std; class range {private: struct I{int x;int operator*(){return x;}bool operator!=(I& lhs){return x a(2*n); for(int i : range(2*n)) { scanf("%d", &a[i]); } sort(a.begin(), a.end()); int dry = 0, wet = 0, moist = 0; for(int i=0, j=2*n-1; i 0) { wet++; j--; } } for(int i=0, j=2*n-1; i= 0; } printf("%d %d %d\n", dry, wet, moist); return 0; }