#include <bits/stdc++.h>
using namespace std;
unsigned long long fact(unsigned long long k) {
  int g = 1;
  for (unsigned long long i = 1; i <= k; i++) {
    g *= i;
  }
  return g;
}
int main() {
  int n;
  cin >> n;
  set<int> vec;
  vector<int> stt;
  int x;
  for (int i = 0; i < n; i++) {
    cin >> x;
    vec.insert(x);
    stt.push_back(x);
  }
  if (vec.size() == 1) {
    cout << "Exemplary pages." << endl;
  } else if (stt.size() == 2 && vec.size() == 2) {
    int c, b;
    int g = max(stt[0], stt[1]) - min(stt[0], stt[1]);
    if (g % 2 == 0) {
      for (int i = 0; i < 2; i++) {
        if (min(stt[0], stt[1]) == stt[i]) c = i + 1;
        if (max(stt[0], stt[1]) == stt[i]) {
          b = i + 1;
        }
      }
      cout << g / 2 << " ml. from cup #" << c << " to cup #" << b << "."
           << endl;
    } else {
      cout << "Unrecoverable configuration." << endl;
    }
  } else if (vec.size() == 3) {
    set<int>::iterator it;
    set<int>::iterator st;
    set<int>::iterator xt;
    it = vec.begin();
    st = it;
    st++;
    xt = st;
    xt++;
    int sa = stt.size();
    int c, b;
    int v = 0, h = 0;
    for (int i = 0; i < sa; i++) {
      if (*it == stt[i]) v++;
      if (*xt == stt[i]) h++;
    }
    if (h > 1 || v > 1)
      cout << "Unrecoverable configuration." << endl;
    else if (*it + *xt == 2 * (*st)) {
      for (int i = 0; i < sa; i++) {
        if (min(*it, *xt) == stt[i]) {
          c = i + 1;
        }
      }
      for (int i = 0; i < sa; i++) {
        if (max(*it, *xt) == stt[i]) {
          b = i + 1;
        }
      }
      cout << *st - min(*it, *xt) << " ml. from cup #" << c << " to cup #" << b
           << "." << endl;
    } else {
      cout << "Unrecoverable configuration." << endl;
    }
  } else {
    cout << "Unrecoverable configuration." << endl;
  }
  return 0;
}
