#include <bits/stdc++.h>
using namespace std;
const long long maxn = 7e5 + 10;
const long long mod = 998244353;
const long long base = 1e18;
long long cnt[maxn];
long long near[maxn];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  if (fopen("t.inp", "r")) {
    freopen("test.inp", "r", stdin);
    freopen("test.out", "w", stdout);
  }
  long long c;
  cin >> c;
  long long n;
  cin >> n;
  for (int i = 1; i <= n; i++) {
    long long x;
    cin >> x;
    cnt[x]++;
  }
  for (int i = 1; i <= c; i++) {
    near[i] = near[i - 1];
    if (cnt[i]) near[i] = i;
  }
  for (int i = 1; i <= c; i++) {
    long long nw = c;
    long long pre = nw;
    bool chk = true;
    while (nw) {
      pre = min(pre, nw);
      long long h = near[pre];
      if (h <= i && i <= nw && chk) {
        chk = false;
        nw -= i;
        continue;
      }
      if (h == 0) break;
      pre = h - 1;
      long long t = cnt[h];
      long long p = min(t, nw / h);
      nw -= (p * h);
    }
    if (nw != 0) {
      cout << i;
      return 0;
    }
  }
  cout << "Greed is good";
  return 0;
}
