#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using vin = vector<int>;
using vll = vector<long long>;
using vvin = vector<vector<int>>;
using vvll = vector<vector<long long>>;
using vstr = vector<string>;
using vvstr = vector<vector<string>>;
using vch = vector<char>;
using vvch = vector<vector<char>>;
using vbo = vector<bool>;
using vvbo = vector<vector<bool>>;
using vpii = vector<pair<int, int>>;
using pqsin = priority_queue<int, vector<int>, greater<int>>;
const int inf = 1e9 + 7;
const ll INF = 1e18;
int main() {
  int n;
  cin >> n;
  vbo color(8, false);
  int sum = 0;
  for (int i = 0; i < (int)(n); i++) {
    int a;
    cin >> a;
    bool tmp = false;
    for (int i = 0; i < (int)(8); i++) {
      if (400 * i <= a && a < 400 * (i + 1)) {
        color[i] = true;
        tmp = true;
        break;
      }
    }
    if (!tmp) sum++;
  }
  int c = 0;
  for (int i = 0; i < (int)(8); i++)
    if (color[i]) c++;
  cout << c << " " << c + sum << endl;
}
