#include <bits/stdc++.h>
using namespace std;
map<int, bool> S;
map<int, bool>::iterator it;
int n, m;
pair<int, int> f[3];
pair<int, int> cup[10001];
int main() {
  cin >> n;
  int count = 0;
  for (int i = 0; i < n; i++) {
    cin >> m;
    if (S.count(m) == 0) {
      count++;
      cup[m] = make_pair(i, 1);
      S[m] = 1;
    } else
      cup[m].second++;
  }
  int idx = 0;
  for (it = S.begin(); it != S.end(); it++) {
    if (cup[it->first].second == 1) {
      f[idx] = make_pair(cup[it->first].first, it->first);
      idx++;
    } else
      f[2] = make_pair(cup[it->first].first, it->first);
  }
  if (count == 1)
    cout << "Exemplary pages.";
  else if (count == 2) {
    if (idx == 2) {
      if (f[0].second < f[1].second) swap(f[0], f[1]);
      int dif = f[0].second - f[1].second;
      if (dif % 2 == 0)
        printf("%d ml. from cup #%d to cup #%d.", dif / 2, f[1].first + 1,
               f[0].first + 1);
      else
        cout << "Unrecoverable configuration.";
    } else
      cout << "Unrecoverable configuration.";
  } else if (count > 3) {
    cout << "Unrecoverable configuration.";
  } else {
    if (idx == 0) {
      cout << "Exemplary pages.";
    } else if (idx == 2) {
      if (f[0].second < f[1].second) swap(f[0], f[1]);
      int dif = f[0].second - f[1].second;
      if (dif % 2 == 0 && f[0].second - dif / 2 == f[2].second)
        printf("%d ml. from cup #%d to cup #%d.", dif / 2, f[1].first + 1,
               f[0].first + 1);
      else
        cout << "Unrecoverable configuration.";
    } else if (idx == 3) {
      if (f[0].second < f[1].second) swap(f[0], f[1]);
      if (f[0].second < f[2].second) swap(f[0], f[2]);
      if (f[1].second < f[2].second) swap(f[1], f[2]);
      int dif = f[0].second - f[2].second;
      if (dif % 2 == 0 && f[0].second - dif / 2 == f[1].second)
        printf("%d ml. from cup #%d to cup #%d.", dif / 2, f[2].first + 1,
               f[0].first + 1);
      else
        cout << "Unrecoverable configuration.";
    } else {
      cout << "Unrecoverable configuration.";
    }
  }
  return 0;
}
