// ConsoleApplication7.cpp : Defines the entry point for the console application. // #include "iostream" #include "vector" using namespace std; typedef long long i64; int main() { int n; scanf("%d", &n); vector a(n); for (int i = 0; i < n; ++i) { scanf("%d", &a[i]); } int ans = 1; for (int i = 0; i < n; ++i) { ans += a[0] < a[i]; printf("%d\n", ans); } return 0; }