#include <bits/stdc++.h>
using namespace std;
const long long inf = (long long)1e18;
const long long MOD = (long long)1e9 + 7;
long long bpw(long long a, long long b) {
  if (b == 0) return 1;
  if (b % 2 == 1) {
    return bpw(a, b - 1) * a % MOD;
  } else {
    long long b2 = bpw(a, b / 2) % MOD;
    return b2 * b2 % MOD;
  }
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(NULL);
  cout.tie(NULL);
  long long n, first = 0, s = 0;
  cin >> n;
  long long a[n];
  for (long long i = 0; i < n; i++) {
    cin >> a[i];
    s += a[i];
  }
  map<long long, long long> mp;
  if (s % n == 0) {
    for (long long i = 0; i < n; i++) {
      a[i] = a[i] - s / n;
      mp[a[i]] = i;
    }
    long long c = 0;
    for (long long i = 0; i < n; i++) {
      if (a[i] != 0) {
        c++;
        if (a[i] > 0) first = i;
      }
    }
    if (c == 0)
      cout << "Exemplary pages.";
    else if (c == 2)
      cout << a[first] << " ml. from cup #" << mp[-1 * a[first]] + 1
           << " to cup #" << first + 1 << '.' << '\n';
    else
      cout << "Unrecoverable configuration.";
  } else
    cout << "Unrecoverable configuration.";
  return 0;
}
