#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  scanf("%d", &n);
  int a[1001];
  int sum = 0;
  for (int i = 0; i < n; i++) {
    scanf("%d", &a[i]);
    sum += a[i];
  }
  sum = sum / n;
  int count = 0;
  int x, y, amx, amy;
  for (int i = 0; i < n; i++) {
    if (sum != a[i]) {
      count++;
      if (sum > a[i]) {
        x = i;
        amx = sum - a[i];
      } else if (sum < a[i]) {
        y = i;
        amy = a[i] - sum;
      }
    }
  }
  if (count == 0)
    printf("Exemplary pages.\n");
  else if (count == 2 && amx == amy)
    printf("%d ml. from cup #%d to cup #%d.\n", amx, x + 1, y + 1);
  else
    printf("Unrecoverable configuration.\n");
  return 0;
}
