#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> a(n);
  for (int i = 0; i < n; ++i) cin >> a[i];
  int cnt = 0;
  for (int i = 0; i < 8; ++i) {
    if (400 * i <= a[i] && a[i] < 400 * (i + 1)) {
      cnt++;
    }
    if (cnt >= 1) {
      cout << cnt << "\n";
    }
    if (cnt == 0) {
      cout << 1 << "\n";
    }
  }
}
