#include <bits/stdc++.h>
using namespace std;
const int C = 2e5 + 5;
int c, n, x, a[C], r[C];
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cin >> c >> n;
  for (int i = 1; i <= n; ++i) {
    cin >> x;
    ++r[x];
    a[x] = x;
  }
  for (int i = 1; i <= c; ++i) {
    if (a[i] == 0) {
      a[i] = a[i - 1];
    }
  }
  for (int i = 1; i <= c; ++i) {
    int t = c, bg = t + 1;
    ++r[i];
    while (true) {
      int tt = a[min(t, bg - 1)];
      if (i <= min(t, bg - 1) && i > a[min(t, bg - 1)]) tt = i;
      if (tt == 0) break;
      t -= min(r[tt], t / tt) * tt;
      bg = tt;
    }
    --r[i];
    if (t) {
      cout << i << endl;
      return 0;
    }
  }
  cout << "Greed is good" << endl;
  return 0;
}
