#include <bits/stdc++.h>
using namespace std;
void swap(int &a, int &b) {
  int temp;
  temp = a;
  a = b;
  b = temp;
}
int main() {
  std::ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int n;
  cin >> n;
  int a[n];
  ;
  for (long int i = 0; i < n; i++) cin >> a[i];
  map<int, int> m;
  vector<int> v;
  ;
  for (long int i = 0; i < n; i++) {
    if (m[a[i]] == 0) {
      v.push_back(a[i]);
      m[a[i]]++;
    } else
      m[a[i]]++;
  }
  if (v.size() == 1) {
    cout << "Exemplary pages.";
    return 0;
  } else if (v.size() == 3) {
    sort(v.begin(), v.end());
    if (m[v[0]] == 1 && m[v[2]] == 1 && (v[0] + v[2]) == 2 * v[1]) {
      int x, y;
      ;
      for (long int i = 0; i < n; i++) {
        if (a[i] == v[0])
          x = i;
        else if (a[i] == v[2])
          y = i;
      }
      cout << v[1] - v[0] << " ml. from cup #" << x + 1 << " to cup #" << y + 1
           << ".";
      return 0;
    }
  } else if (v.size() == 2 && m[v[0]] == 1 && m[v[1]] == 1 &&
             (v[0] + v[1]) % 2 == 0) {
    sort(v.begin(), v.end());
    int x, y;
    ;
    for (long int i = 0; i < n; i++) {
      if (a[i] == v[0])
        x = i;
      else if (a[i] == v[1])
        y = i;
    }
    cout << (v[1] - v[0]) / 2 << " ml. from cup #" << x + 1 << " to cup #"
         << y + 1 << ".";
    return 0;
  }
  cout << "Unrecoverable configuration.";
  return 0;
}
