#include <bits/stdc++.h>
using namespace std;
struct Fast {
  Fast() {
    std::cin.tie(0);
    ios::sync_with_stdio(false);
  }
} fast;
const int INF = 999999999;
const int MOD = 1e9 + 7;
const int dx[] = {0, 1, 0, -1, 1, 1, -1, -1},
          dy[] = {1, 0, -1, 0, 1, -1, -1, 1};
inline bool inside(int y, int x, int H, int W) {
  return y >= 0 && x >= 0 && y < H && x < W;
}
inline int in() {
  int x;
  std::cin >> x;
  return x;
}
template <typename T>
void print(std::vector<T>& v, char c = ' ') {
  for (int i = 0; i < v.size(); ++i) {
    if (i != 0) std::cout << c;
    std::cout << v[i];
  }
  std::cout << '\n';
}
template <typename T>
void print(T x) {
  std::cout << x << '\n';
}
signed main() {
  int n = in();
  vector<int> v, a = {0, 0, 0, 0, 0, 0, 0, 0};
  int f = 0;
  for (int i = 0; i < n; ++i) v.push_back(in());
  for (auto i : v) {
    if (3200 <= i) {
      f++;
    } else {
      a[i / 400]++;
    }
  }
  int cnt = 0;
  for (int i = 0; i < 8; i++) {
    if (a[i] != 0) cnt++;
  }
  cout << (cnt == 0 ? 1 : cnt) << " " << (cnt + f) % 9 << '\n';
  return (0);
}
