#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int x[n];
  int sum = 0;
  for (int i = 0; i < n; i++) {
    cin >> x[i];
    sum += x[i];
  }
  if (sum % n != 0) {
    cout << "Unrecoverable configuration." << endl;
    return 0;
  }
  sum = sum / n;
  vector<pair<int, int> > v1, v2;
  bool a = 0, b = 0;
  ;
  for (int i = 0; i < n; i++) {
    if (x[i] > sum)
      v1.push_back({x[i], i}), a = 1;
    else if (x[i] < sum)
      v2.push_back({x[i], i}), a = 1;
  }
  if (!a) {
    cout << "Exemplary pages." << endl;
    return 0;
  }
  bool vis[10005];
  for (int i = 0; i < 10005; i++) vis[i] = 0;
  vector<string> ans;
  if (v1.size() != 1 && v2.size() != 1) {
    cout << "Unrecoverable configuration." << endl;
    return 0;
  }
  for (int i = 0; i < v1.size(); i++) {
    for (int j = 0; j < v2.size(); j++) {
      if (!vis[i] && !vis[j] && v1[i].first + v2[j].first == sum * 2) {
        cout << (v1[i].first - sum) << " ml. from cup #" << v2[j].second + 1
             << " to cup #" << v1[i].second + 1 << "." << endl;
        vis[i] = 1;
        vis[j] = 1;
      }
    }
  }
  return 0;
}
