#include <bits/stdc++.h>
using namespace std;
bool home = 1;
signed realMain();
signed main() {
  home = 0;
  if (home) {
    freopen("tony_stark", "r", stdin);
  } else {
    ios::sync_with_stdio(0);
    cin.tie(0);
  }
  realMain();
}
const long long N = 200000 + 7;
long long c, n, f[N], smallerInitial[N];
long long extra;
long long get_smaller(long long num) {
  long long ret = smallerInitial[num];
  if (extra <= num) ret = max(ret, extra);
  return ret;
}
signed realMain() {
  cin >> c >> n;
  for (long long i = 1; i <= n; i++) {
    long long a;
    cin >> a;
    f[a]++;
  }
  smallerInitial[0] = -1;
  for (long long i = 1; i <= c; i++) {
    if (f[i])
      smallerInitial[i] = i;
    else
      smallerInitial[i] = smallerInitial[i - 1];
  }
  for (long long bag = 1; bag <= c; bag++) {
    extra = bag;
    f[bag]++;
    long long have = c, last = c + 1;
    while (have > 0) {
      long long want = get_smaller(min(have, last - 1));
      if (want == -1) break;
      long long will_take = min(f[want], have / want);
      last = want;
      have -= will_take * want;
    }
    if (have > 0) {
      cout << bag << "\n";
      return 0;
    }
    f[bag]--;
  }
  cout << "Greed is good\n";
  return 0;
}
