#include <bits/stdc++.h>
using namespace std;
map<int, int> idx;
map<int, int> vals;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) {
    int a;
    cin >> a;
    vals[a]++;
    idx[a] = i;
  }
  if (vals.size() == 1)
    cout << "Exemplary pages.\n";
  else if (vals.size() != 2 && vals.size() != 3)
    cout << "Unrecoverable configuration.\n";
  else {
    int v1 = vals.begin()->first;
    int v2 = (++vals.begin())->first;
    int v3 = -1;
    if (vals.size() == 3) v3 = (++(++(vals.begin())))->first;
    if (v3 == -1) {
      if (vals[v1] > 1 || vals[v2] > 1 || (v2 - v1) % 2 != 0 ||
          v1 + (v2 - v1) / 2 != v2 - (v2 - v1) / 2)
        cout << "Unrecoverable configuration.\n";
      else
        cout << (v2 - v1) / 2 << " ml. from cup #" << idx[v1] + 1 << " to cup #"
             << idx[v2] + 1 << ".\n";
    } else {
      if (vals[v1] > 1 || vals[v3] > 1 || (v3 - v1) % 2 != 0 ||
          v1 + (v3 - v1) / 2 != v2 || v3 - (v3 - v1) / 2 != v2)
        cout << "Unrecoverable configuration.\n";
      else
        cout << (v3 - v1) / 2 << " ml. from cup #" << idx[v1] + 1 << " to cup #"
             << idx[v3] + 1 << ".\n";
    }
  }
}
