#include "inttypes.h" #include "stdint.h" #include "stdio.h" #include "stdlib.h" int main(int argc, char const *argv[]) { uint32_t n; scanf("%d", &n); int32_t pos = 1; printf("%d\n", pos); int32_t a0; scanf("%d", &a0); for (size_t i = 1; i < n; i++){ int32_t a; scanf("%d", &a); if (a > a0) { pos++; } printf("%d\n", pos); } return EXIT_SUCCESS; }