#include <bits/stdc++.h>
using namespace std;
int c, n, a[200002], b[200002], x, y, z, w, i, j, t;
int main() {
  cin >> c >> n;
  for (i = 0; i < n; i++) cin >> x, a[x]++;
  for (i = 1; i <= c; i++) {
    if (a[i])
      b[i] = i;
    else
      b[i] = b[i - 1];
  }
  for (i = 1; i <= c; i++) {
    j = i;
    x = y = c;
    while (x) {
      if (b[x] == 0) {
        cout << i << endl;
        return 0;
      }
      z = min(y, b[x]);
      if (z == 0) break;
      if (j <= x && j > z) z = j;
      w = a[z] + (i == z);
      if (i == z) j = 0;
      x -= min(w, x / z) * z;
      y = min(b[z - 1], b[x]);
    }
    if (x) {
      cout << i << endl;
      return 0;
    }
  }
  cout << "Greed is good\n";
  return 0;
}
