#include <bits/stdc++.h>
using namespace std;
void YES() { cout << "YES\n"; }
void NO() { cout << "NO\n"; }
void Yes() { cout << "Yes\n"; }
void No() { cout << "No\n"; }
int gcd(int x, int y) { return y ? gcd(y, x % y) : x; }
long long gcd(long long x, long long y) { return y ? gcd(y, x % y) : x; }
int lcm(int x, int y) { return x / gcd(x, y) * y; }
long long lcm(long long x, long long y) { return x / gcd(x, y) * y; }
int dx[] = {1, 0, -1, 0, 1, -1, -1, 1};
int dy[] = {0, -1, 0, 1, -1, -1, 1, 1};
int main() {
  int top = 0, n, a;
  bool color[8] = {false};
  cin >> n;
  for (int i = 0; i < (n); ++i) {
    cin >> a;
    if (a >= 3200)
      top++;
    else
      color[a / 400] = true;
  }
  int used = count(color, color + 8, true), c, d;
  if (used == 0)
    c = 1;
  else
    c = used;
  if (used + top > 8)
    d = 8;
  else
    d = used + top;
  cout << c << " " << d << endl;
  return 0;
}
