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>
const long long md = 1e9 + 7;
const long long Inf = 1e18;
const long long Inf64 = 1e18;
const long long MaxN = 1e5 + 100;
const long long LogN = 20;
const long long MaxM = 5e5 + 10;
const double eps = 1e-3;
const int dx[8] = {1, -1, 2, 2, -1, 1, -2, -2};
const int dy[8] = {2, 2, 1, -1, -2, -2, 1, -1};
const int ddx[4] = {1, 1, -1, -1};
const int ddy[4] = {1, -1, 1, -1};
const double Pi = acos(-1);
using namespace std;
template <typename T>
istream &operator>>(istream &in, pair<T, T> &a) {
  in >> a.first >> a.second;
  return in;
}
template <typename T>
ostream &operator<<(ostream &out, pair<T, T> a) {
  out << a.first << ' ' << a.second;
  return out;
}
template <typename T>
istream &operator>>(istream &in, vector<T> &Mt) {
  for (T &a : Mt) in >> a;
  return in;
}
template <typename T>
ostream &operator<<(ostream &out, vector<T> Mt) {
  for (int i = 0; i < (int)Mt.size(); i++) {
    out << Mt[i];
    if (i != (int)Mt.size()) out << ' ';
  }
  out << '\n';
  return out;
}
inline long long Mod(long long &a, long long m = md) {
  while (a >= m) a -= m;
  return a;
}
inline long long gcd(long long a, long long b) {
  while (a) {
    b %= a;
    swap(a, b);
  }
  return b;
}
inline long long gcdex(long long a, long long mod = md) {
  long long g = mod, r = a, x = 0, y = 1;
  while (r != 0) {
    long long q = g / r;
    g %= r;
    swap(g, r);
    x -= q * y;
    swap(x, y);
  }
  return x < 0 ? x + mod : x;
}
inline long long binpow(long long a, long long n, long long m = md) {
  long long res = 1;
  while (n) {
    if (n & 1) {
      res *= a;
      res %= m;
    }
    a *= a;
    a %= m;
    n >>= 1;
  }
  return res % md;
}
long long dp[MaxN][2];
long long SP[2][MaxN][LogN];
pair<long long, long long> St[MaxN];
long long Pw[MaxN];
long long N, K;
void Build() {
  for (int i = 0; i <= N; i++) {
    SP[0][i][0] = dp[i][0];
    SP[1][i][0] = dp[i][1];
    dp[i][0] = Inf;
    dp[i][1] = Inf;
  }
  for (int i = 1; i < LogN; i++) {
    for (int j = 0; j <= N - (1 << i) + 1; j++) {
      SP[0][j][i] = min(SP[0][j][i - 1], SP[0][j + (1 << i - 1)][i - 1]);
      SP[1][j][i] = min(SP[1][j][i - 1], SP[1][j + (1 << i - 1)][i - 1]);
    }
  }
}
void addMin(long long &a, long long f, long long l, long long r,
            long long b = 0) {
  if (r < 0) return;
  l = max(l, 0ll);
  long long lg = Pw[r - l + 1];
  a = min({a, SP[f][l][lg] + b, SP[f][r - (1 << lg) + 1][lg] + b});
}
signed main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  {
    cin >> N >> K;
    for (int i = 1; i <= K; i++) cin >> St[i];
    Pw[0] = 0;
    for (int i = 1; i <= N; i++) {
      Pw[i] = Pw[i - 1];
      if (i == (1 << (Pw[i] + 1))) Pw[i]++;
    }
    for (int i = 0; i <= N; i++) {
      dp[i][0] = Inf;
      dp[i][1] = Inf;
    }
    dp[0][0] = 0;
    for (int i = 1; i <= K; i++) {
      long long len = St[i].second - St[i].first + 1;
      long long lst = St[i].first - St[i - 1].second - 1;
      Build();
      for (int j = 0; j <= N; j++) {
        addMin(dp[j][0], 0, j - len - lst, j - len - lst);
        addMin(dp[j][1], 1, j, j);
        addMin(dp[j][0], 1, j - len + 1, j, 1);
        addMin(dp[j][1], 0, j - len - lst, j - lst - 1, 1);
        if (St[i].first == St[i].second) continue;
        addMin(dp[j][0], 0, j - lst - len + 1, j - lst - 1, +2);
        addMin(dp[j][1], 1, j - len + 1, j - 1, +2);
      }
    }
  }
  long long Ans = Inf;
  Ans = min(Ans, dp[N][1]);
  Ans = min(Ans, dp[N][0] + 1);
  if (St[K].second >= N) {
    Ans = min(Ans, dp[N - (2 * N - St[K].second)][0]);
    Ans = min(Ans, dp[N - (2 * N - St[K].second)][1] + 1);
  }
  if (Ans == Inf) {
    cout << "Hungry\n";
    return 0;
  }
  cout << "Full\n" << Ans;
END:
  return 0;
}