#include "iostream" #include "climits" #include "list" #include "queue" #include "stack" #include "set" #include "functional" #include "algorithm" #include "math.h" #include "utility" #include "string" #include "map" #include "unordered_map" #include "iomanip" #include "random" using namespace std; const long long int MOD = 1000000007; int N; int num; int ans = 1; int box; int main() { cin >> N; cin >> num; cout << "1" << endl; for (int i = 1; i < N; i++) { cin >> box; if (box > num)ans++; cout << ans << endl; } return 0; }