#include <bits/stdc++.h>
using namespace std;
struct juice {
  int index;
  int ai;
};
bool cmp(struct juice j1, struct juice j2) { return j1.ai < j2.ai; }
int main() {
  int n;
  vector<juice> JList;
  int high = 0, low = 0;
  long long sum = 0;
  double mean;
  cin >> n;
  for (int i = 0; i < n; i++) {
    int temp;
    cin >> temp;
    sum += temp;
    struct juice j = {i + 1, temp};
    JList.push_back(j);
  }
  sort(JList.begin(), JList.end(), cmp);
  mean = sum / n;
  for (int i = 0; i < n; i++) {
    if (JList[i].ai > mean)
      high++;
    else if (JList[i].ai < mean)
      low++;
  }
  if (high == 0 && low == 0)
    cout << "Exemplary pages." << endl;
  else if (high != low || high != 1)
    cout << "Unrecoverable configuration." << endl;
  else if ((mean - JList[0].ai) == (JList[n - 1].ai - mean) &&
           int(mean) == mean) {
    cout << JList[n - 1].ai - mean << " ml. from cup #" << JList[0].index
         << " to cup #" << JList[n - 1].index << "." << endl;
  } else
    cout << "Unrecoverable configuration." << endl;
  return 0;
}
