Problem: Arkady wants to have a dinner. He has just returned from a shop where he has bought a semifinished cutlet. He only needs to fry it. The cutlet should be fried for 2n seconds, in particular, it should be fried for n seconds on one side and n seconds on the other side. Arkady has already got a frying pan and turn on fire, but understood that maybe he won't be able to flip the cutlet exactly after n seconds after the beginning of cooking.

Arkady is too busy with sorting sticker packs in his favorite messenger and can flip the cutlet only in some periods of time. Namely, there are k periods of time in which he can do it, the i-th of them is an interval of time from li seconds after he starts cooking till ri seconds, inclusive. Arkady decided that it's not required to flip the cutlet exactly in the middle of cooking, instead, he will flip it several times in such a way that the cutlet will be fried exactly n seconds on one side and n seconds on the other side in total.

Help Arkady and find out if it's possible for him to cook the cutlet, if he is able to flip the cutlet only in given periods of time; and if yes, find the minimum number of flips he needs to cook the cutlet.

Input

The first line contains two integers n and k (1 ≤ n ≤ 100 000, 1 ≤ k ≤ 100) — the number of seconds the cutlet should be cooked on each side and number of periods of time in which Arkady can flip it.

The next k lines contain descriptions of these intervals. Each line contains two integers li and ri (0 ≤ li ≤ ri ≤ 2·n), meaning that Arkady can flip the cutlet in any moment starting from li seconds after the beginning of cooking and finishing at ri seconds after beginning of cooking. In particular, if li = ri then Arkady can flip the cutlet only in the moment li = ri. It's guaranteed that li > ri - 1 for all 2 ≤ i ≤ k.

Output

Output "Hungry" if Arkady won't be able to fry the cutlet for exactly n seconds on one side and exactly n seconds on the other side.

Otherwise, output "Full" in the first line, and the minimum number of times he should flip the cutlet in the second line.

Examples

Input

10 2
3 5
11 13


Output

Full
2


Input

10 3
3 5
9 10
11 13


Output

Full
1


Input

20 1
3 19


Output

Hungry

Note

In the first example Arkady should flip the cutlet in time moment 3 seconds after he starts cooking and in time moment 13 seconds after he starts cooking.

In the second example, Arkady can flip the cutlet at 10 seconds after he starts cooking.

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
using namespace std;
const long long mod = 1000000007;
const long long INF = mod * mod;
const long double eps = 1e-12;
const long double pi = acos(-1.0);
void chmin(int &a, int b) { a = min(a, b); }
long long mod_pow(long long a, long long n, long long m = mod) {
  long long res = 1;
  while (n) {
    if (n & 1) res = res * a % m;
    a = a * a % m;
    n >>= 1;
  }
  return res;
}
struct modint {
  long long n;
  modint() : n(0) { ; }
  modint(long long m) : n(m) {
    if (n >= mod)
      n %= mod;
    else if (n < 0)
      n = (n % mod + mod) % mod;
  }
  operator int() { return n; }
};
bool operator==(modint a, modint b) { return a.n == b.n; }
modint operator+=(modint &a, modint b) {
  a.n += b.n;
  if (a.n >= mod) a.n -= mod;
  return a;
}
modint operator-=(modint &a, modint b) {
  a.n -= b.n;
  if (a.n < 0) a.n += mod;
  return a;
}
modint operator*=(modint &a, modint b) {
  a.n = ((long long)a.n * b.n) % mod;
  return a;
}
modint operator+(modint a, modint b) { return a += b; }
modint operator-(modint a, modint b) { return a -= b; }
modint operator*(modint a, modint b) { return a *= b; }
modint operator^(modint a, int n) {
  if (n == 0) return modint(1);
  modint res = (a * a) ^ (n / 2);
  if (n % 2) res = res * a;
  return res;
}
long long inv(long long a, long long p) {
  return (a == 1 ? 1 : (1 - p * inv(p % a, a)) / a + p);
}
modint operator/(modint a, modint b) { return a * modint(inv(b, mod)); }
const int max_n = 10000;
modint fact[max_n], factinv[max_n];
void init_f() {
  fact[0] = modint(1);
  for (int i = 0; i < max_n - 1; i++) {
    fact[i + 1] = fact[i] * modint(i + 1);
  }
  factinv[max_n - 1] = modint(1) / fact[max_n - 1];
  for (int i = max_n - 2; i >= 0; i--) {
    factinv[i] = factinv[i + 1] * modint(i + 1);
  }
}
modint comb(int a, int b) {
  if (a < 0 || b < 0 || a < b) return 0;
  return fact[a] * factinv[b] * factinv[a - b];
}
int dx[4] = {0, 1, 0, -1};
int dy[4] = {1, 0, -1, 0};
bool func(int a, int b) { return a >= b; }
vector<int> slide_minimum(vector<int> a, int k) {
  int n = a.size();
  vector<int> res;
  vector<int> deq(n);
  int s = 0, t = 0;
  for (int i = 0; i < n; i++) {
    while (s < t && func(a[deq[t - 1]], a[i])) t--;
    deq[t++] = i;
    if (i - k + 1 >= 0) {
      res.push_back(a[deq[s]]);
      if (deq[s] == i - k + 1) s++;
    }
  }
  return res;
}
int dp[1 << 17][2];
int nex[1 << 17][2];
void solve() {
  int n, k;
  cin >> n >> k;
  vector<int> le(k), ri(k);
  for (int i = 0; i < k; i++) {
    cin >> le[i] >> ri[i];
  }
  for (int i = 0; i < n + 1; i++) dp[i][0] = dp[i][1] = mod;
  dp[0][0] = 0;
  int cur = 0;
  for (int i = 0; i < k; i++) {
    int dif = le[i] - cur;
    for (int j = n + 1 - 1; j >= 0; j--) {
      if (j + dif <= n) {
        dp[j + dif][0] = dp[j][0];
      }
    }
    for (int j = 0; j < dif; j++) {
      dp[j][0] = mod;
    }
    for (int i = 0; i < n + 1; i++)
      for (int j = 0; j < 2; j++) nex[i][j] = mod;
    int len = ri[i] - le[i];
    for (int j = 0; j < n + 1; j++) {
      if (j + len <= n) {
        chmin(nex[j + len][0], dp[j][0]);
      }
    }
    vector<int> ori;
    for (int j = 0; j < len; j++) ori.push_back(mod);
    for (int j = 0; j < n + 1; j++) ori.push_back(dp[j][0]);
    vector<int> res = slide_minimum(ori, len + 1);
    for (int j = 0; j < n + 1; j++) {
      chmin(nex[j][1], res[j] + 1);
    }
    for (int j = 0; j < n + 1; j++) {
      chmin(nex[j][0], res[j] + 2);
    }
    for (int j = 0; j < n + 1; j++) {
      chmin(nex[j][1], dp[j][1]);
    }
    ori.clear();
    for (int j = 0; j < len; j++) ori.push_back(mod);
    for (int j = 0; j < n + 1; j++) ori.push_back(dp[j][1]);
    res = slide_minimum(ori, len + 1);
    for (int j = 0; j < n + 1; j++) {
      chmin(nex[j][0], res[j] + 1);
    }
    for (int j = 0; j < n + 1; j++) {
      chmin(nex[j][1], res[j] + 2);
    }
    for (int j = 0; j < n + 1; j++) {
      dp[j][0] = nex[j][0];
      dp[j][1] = nex[j][1];
    }
    cur = ri[i];
  }
  int dif = 2 * n - cur;
  for (int j = n + 1 - 1; j >= 0; j--) {
    if (j + dif <= n) {
      dp[j + dif][0] = dp[j][0];
    }
  }
  for (int j = 0; j < dif; j++) {
    dp[j][0] = mod;
  }
  int ans = min(dp[n][0], dp[n][1]);
  if (ans >= mod) {
    cout << "Hungry\n";
  } else {
    cout << "Full\n";
    cout << ans << "\n";
  }
}
signed main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout << fixed << setprecision(7);
  solve();
  char nyaa;
  cin >> nyaa;
  return 0;
}