#include <bits/stdc++.h>
using namespace std;
const int mod = 1000000007;
int main() {
  ios::sync_with_stdio(false);
  int m, n, o, a[200005] = {}, b[200005] = {};
  cin >> m >> n;
  while (n--) cin >> o, a[o]++;
  for (int i = 1; i <= m; i++) {
    if (a[i])
      b[i] = i;
    else
      b[i] = b[i - 1];
  }
  for (int z = 1; z <= m; z++) {
    int c = m, e = b[m];
    bool d = 0;
    while (e || (!d && z <= c)) {
      if (!d && z >= e && z <= c) {
        c -= z;
        e = b[c];
        d = 1;
      } else {
        if (c >= 1ll * e * a[e]) {
          c -= 1ll * e * a[e];
          e = b[e - 1];
        } else {
          c %= e;
          e = b[c];
        }
      }
    }
    if (c) {
      cout << z;
      return 0;
    }
  }
  cout << "Greed is good";
}
