#include using namespace std; int main(){ int N; cin >> N; vector A(N); for(int i=0; i> A[i]; A[i]--; } vector cnt(N); for(int i=0; i