#include <bits/stdc++.h>
using namespace std;
void __print(int x) { cerr << x; }
void __print(long x) { cerr << x; }
void __print(long long x) { cerr << x; }
void __print(unsigned x) { cerr << x; }
void __print(unsigned long x) { cerr << x; }
void __print(unsigned long long x) { cerr << x; }
void __print(float x) { cerr << x; }
void __print(double x) { cerr << x; }
void __print(long double x) { cerr << x; }
void __print(char x) { cerr << '\'' << x << '\''; }
void __print(const char *x) { cerr << '\"' << x << '\"'; }
void __print(const string &x) { cerr << '\"' << x << '\"'; }
void __print(bool x) { cerr << (x ? "true" : "false"); }
template <typename T, typename V>
void __print(const pair<T, V> &x) {
  cerr << '{';
  __print(x.first);
  cerr << ',';
  __print(x.second);
  cerr << '}';
}
template <typename T>
void __print(const T &x) {
  int f = 0;
  cerr << '{';
  for (auto &i : x) cerr << (f++ ? "," : ""), __print(i);
  cerr << "}";
}
void _print() { cerr << "]\n"; }
template <typename T, typename... V>
void _print(T t, V... v) {
  __print(t);
  if (sizeof...(v)) cerr << ", ";
  _print(v...);
}
mt19937_64 rnd;
const int N = 2e5 + 5;
map<int, int> mp;
void color(int n) {
  if (n >= 1 && n <= 399) {
    mp[0]++;
  } else if (n >= 400 && n <= 799) {
    mp[1]++;
  } else if (n >= 800 && n <= 1199) {
    mp[2]++;
  } else if (n >= 1200 && n <= 1599) {
    mp[3]++;
  } else if (n >= 1600 && n <= 1999) {
    mp[4]++;
  } else if (n >= 2000 && n <= 2399) {
    mp[5]++;
  } else if (n >= 2400 && n <= 2799) {
    mp[6]++;
  } else if (n >= 2800 && n <= 3199) {
    mp[7]++;
  }
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int n;
  cin >> n;
  vector<int> fre;
  for (int i = 0; i < n; i++) {
    int x;
    cin >> x;
    if (x >= 1 && x <= 3199) {
      color(x);
    } else {
      fre.push_back(x);
    }
  }
  int mn = int((mp).size());
  int avail = 0;
  for (int i = 0; i < 8; i++) {
    if (!mp.count(i)) {
      avail++;
    }
  }
  cout << mn << ' ' << mn + min(avail, int((fre).size()));
  return 0;
}
