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;
class segtree {
  struct node {
    int v = 1e9;
    inline node operator+(const node &other) const {
      node ret;
      ret.v = min(v, other.v);
      return ret;
    }
  };
  inline int left(int p) { return p << 1; }
  inline int right(int p) { return (p << 1) + 1; }
  int n;
  vector<node> tree;
  void build(int l, int r, int p, const vector<int> &v) {
    if (l == r) {
      tree[p].v = v[l];
      return;
    }
    int mid = (l + r) >> 1;
    build(l, mid, left(p), v);
    build(mid + 1, r, right(p), v);
    tree[p] = tree[left(p)] + tree[right(p)];
  }
  void update(int i, int v, int l, int r, int p) {
    if (i > r || i < l) return;
    if (l == r) {
      tree[p].v = v;
      return;
    }
    int mid = (l + r) >> 1;
    update(i, v, l, mid, left(p));
    update(i, v, mid + 1, r, right(p));
    tree[p] = tree[left(p)] + tree[right(p)];
  }
  node query(int s, int e, int l, int r, int p) {
    if (l >= s && r <= e) return tree[p];
    int mid = (l + r) >> 1;
    if (e <= mid)
      return query(s, e, l, mid, left(p));
    else if (s > mid)
      return query(s, e, mid + 1, r, right(p));
    return query(s, e, l, mid, left(p)) + query(s, e, mid + 1, r, right(p));
  }

 public:
  segtree(int _n) : n(_n) { tree.resize(4 * n); }
  segtree(const vector<int> &v) : n(v.size()) {
    tree.resize(4 * n);
    build(0, n - 1, 1, v);
  }
  void update(int p, int v) { update(p, v, 0, n - 1, 1); }
  int query(int s, int e) {
    if (e < s || e < 0) return 1e9;
    s = max(0, s);
    return query(s, e, 0, n - 1, 1).v;
  }
};
const int N = 1e5 + 5;
int dp[N][2];
int main() {
  ios::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  int n, k;
  cin >> n >> k;
  vector<pair<int, int> > per(k);
  for (int i = 0; i < k; i++) cin >> per[i].first >> per[i].second;
  memset(dp, '?', sizeof dp);
  segtree zero(N), one(N);
  zero.update(0, 0);
  one.update(0, 0);
  for (int i = k - 1; i >= 0; i--) {
    for (int turn = 0; turn < 2; turn++) {
      for (int rem = 0; rem < N; rem++) {
        int &ret = dp[rem][turn];
        ret = 1e9;
        int len = per[i].second - per[i].first;
        int jump = (i == k - 1) ? (2 * n - per[i].second)
                                : (per[i + 1].first - per[i].second);
        if (!turn) {
          ret = zero.query(rem - len - jump, rem - len - jump);
          ret = min(ret, one.query(rem - len, rem) + 1);
          if (len >= 1)
            ret = min(ret, zero.query(rem - len - jump, rem - jump) + 2);
        } else {
          ret = one.query(rem, rem);
          ret = min(ret, zero.query(rem - len - jump, rem - jump) + 1);
          if (len >= 1) ret = min(ret, one.query(rem - len, rem) + 2);
        }
      }
    }
    for (int rem = 0; rem < N; rem++) {
      zero.update(rem, dp[rem][0]);
      one.update(rem, dp[rem][1]);
    }
  }
  int ans = zero.query(n - per[0].first, n - per[0].first);
  if (ans < 1e8)
    cout << "Full\n" << ans;
  else
    cout << "Hungry\n";
}