#include <bits/stdc++.h>
using namespace std;
const int N = 510;
const int M = N * N;
int id[N][N], n, res, sz;
bool first, is[M], used[M];
vector<int> g[M];
vector<pair<int, int> > neigh[N][N];
void inside(int x, int y) {
  if (id[x][y] != -1) return;
  int cnt = 0;
  for (auto x : neigh[x][y]) {
    int xx = x.first;
    int yy = x.second;
    if (id[xx][yy] != -1) cnt++;
  }
  if (cnt < 2) return;
  id[x][y] = n++;
  for (auto x : neigh[x][y]) inside(x.first, x.second);
}
void dfs(int second) {
  ++sz;
  res += g[second].size();
  for (auto it : g[second]) {
    if (is[it] and is[second]) first = 0;
  }
  if (!is[second]) {
    int cnt = 0;
    for (auto it : g[second])
      if (is[it]) cnt++;
    if (cnt == 2) first = 0;
  }
  used[second] = 1;
  for (auto it : g[second])
    if (!used[it]) dfs(it);
}
int main() {
  for (int x = 0; x < N; x++)
    for (int y = 0; y < N; y++) id[x][y] = -1;
  for (int x = 2; x < N - 2; x++)
    for (int y = 2; y < N - 2; y++) {
      neigh[x][y].push_back({x - 1, y});
      neigh[x][y].push_back({x + 1, y});
      if (x % 2 == 0)
        neigh[x][y].push_back({x + 1, y - 1});
      else
        neigh[x][y].push_back({x - 1, y + 1});
    }
  cin >> n;
  for (int i = 0; i < n; i++) {
    int x, y;
    cin >> x >> y;
    x += 4;
    y += 4;
    id[x][y] = i;
    is[i] = 1;
  }
  for (int x = 2; x < N - 2; x++)
    for (int y = 2; y < N - 2; y++) inside(x, y);
  for (int x = 2; x < N - 2; x++)
    for (int y = 2; y < N - 2; y++) {
      if (id[x][y] == -1) continue;
      int v = id[x][y];
      for (auto it : neigh[x][y]) {
        int yy = id[it.first][it.second];
        if (yy == -1) continue;
        g[v].push_back(yy);
      }
    }
  int val = 0;
  for (int v = 0; v < n; v++) {
    if (!is[v]) continue;
    val += 3;
    for (auto it : g[v])
      if (is[it]) val--;
  }
  for (int v = 0; v < n; v++) {
    if (used[v]) continue;
    res = 0;
    sz = 0;
    first = 1;
    val -= 2;
    dfs(v);
    if (res != 2 * sz - 2) {
      cout << "SICK";
      return 0;
    }
    if (first and sz > 1) val -= 2;
  }
  cout << "RECOVERED\n" << val;
  return 0;
}
