#include #include using namespace std; typedef long long ll; const ll LINF = (1LL << 60); const int MX = 200005; int main(){ cin.tie(0); ios::sync_with_stdio(false); cout << fixed << setprecision(15); int n; cin >> n; vector a(n); for (int i = 0; i < n; i++) { cin >> a[i]; } int ans = 1; cout << ans << endl; for (int i = 1; i < n; i++) { if (a[0] < a[i]) { ans++; } cout << ans << endl; } return 0; }