#include <bits/stdc++.h>
using namespace std;
const int mod = 1000003;
long double pi = 3.1415926536;
const int mx = 1000003;
long long gcd(long long x, long long y) {
  if (y == 0) return x;
  return gcd(y, x % y);
}
long long bp(long long a, long long b) {
  long long ans = 1;
  while (b > 0) {
    if (b & 1) ans = (ans * a) % mod;
    a = (a * a) % mod;
    b >>= 1;
  }
  return ans;
}
long long p(long long n) {
  for (long long i = 2; i * i <= n; i++) {
    if (n % i == 0) {
      return n / i;
    }
  }
  return 1;
}
vector<long long> z(string s) {
  long long n = s.size();
  vector<long long> z(n);
  long long x = 0, y = 0, p = 0;
  for (long long i = 1; i < n; i++) {
    z[i] = max(p, min(z[i - x], y - i + 1));
    while (i + z[i] < n && s[z[i]] == s[i + z[i]]) {
      x = i;
      y = i + z[i];
      z[i]++;
    }
  }
  return z;
}
int main() {
  long n, m = 0, k = 0, a, b, c = 0, d = 0;
  cin >> n;
  long v[n];
  for (long i = 0; i < n; i++) {
    cin >> v[i];
    m += v[i];
  }
  if (m % n != 0) {
    cout << "Unrecoverable configuration.";
    return 0;
  }
  m /= n;
  a = m;
  b = m;
  for (long i = 0; i < n; i++) {
    if (v[i] > a) {
      a = v[i];
      c = i;
    }
    if (v[i] < b) {
      b = v[i];
      d = i;
    }
    if (v[i] != m) k++;
  }
  if (k == 0)
    cout << "Exemplary pages.";
  else if (k == 2)
    cout << (a - b) / 2 << " ml. from cup #" << d + 1 << " to cup #" << c + 1
         << ".";
  else
    cout << "Unrecoverable configuration.";
  return 0;
}
