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 JAVA):

Solution:
import java.io.DataInputStream;
import java.io.IOException;

public class Task939F {

    public static class FastScanner {

        protected DataInputStream dataInputStream;
        protected byte[] buffer = new byte[0x10000];
        protected int bufferOffset;
        protected int bufferLength;
        protected boolean isEndOfFile;

        public FastScanner() throws IOException {
            dataInputStream = new DataInputStream(System.in);
            Read();
        }

        protected void Read() throws IOException {
            final int length = dataInputStream.read(buffer);
            if (length > 0) {
                bufferLength = length;
            } else {
                bufferLength = 0;
                isEndOfFile = true;
            }
            bufferOffset = 0;
        }

        protected byte nextByte() throws IOException {
            if (bufferOffset == bufferLength) {
                if (!isEndOfFile) Read();
                if (isEndOfFile) return 0;
            }
            return buffer[bufferOffset++];
        }

        public int nextInt() throws IOException {
            int a = 0;
            boolean isNegative = false;

            byte b = nextByte();
            while (b <= ' ') b = nextByte();
            if (b == '-') {
                isNegative = true;
                b = nextByte();
            }
            while (b > ' ') {
                a = a * 10 + (b - '0');
                b = nextByte();
            }
            return isNegative ? -a : a;
        }

    }

    public static void SaveRotates(final int num) {
        if (minNumRotates == 0) minNumRotates = num;
        else minNumRotates = Math.min(minNumRotates, num);
    }

    public static void CalcRotates(int side, final int[] tmin, final int[] tmax,
                                  int noffset, int koffset, boolean isInterval) {
        if (tmin[0] > n || tmin[1] > n) return;
        else if ((tmin[0] <= n && tmax[0] >= n) || (tmin[1] <= n && tmax[1] >= n)) {
            if ((tmax[0] < n && side == 1) || (tmax[1] < n && side == 0)) {
                SaveRotates(numRotates + 1);
            } else {
                SaveRotates(numRotates);
            }
            return;
        } else if (koffset == k) return;

        if (isInterval) {
            if (kbeg[koffset] == kend[koffset]) {
                // no rotate
                CalcRotates(side, tmin, tmax, noffset, koffset + 1, false);

                // rotate
                numRotates++;
                CalcRotates(1 - side, tmin, tmax, noffset, koffset + 1, false);
                numRotates--;

            } else {
                // no rotate
                tmin[side] += kend[koffset] - kbeg[koffset];
                tmax[side] += kend[koffset] - kbeg[koffset];
                CalcRotates(side, tmin, tmax, kend[koffset], koffset + 1, false);
                tmin[side] -= kend[koffset] - kbeg[koffset];
                tmax[side] -= kend[koffset] - kbeg[koffset];

                // rotate once
                tmax[side] += kend[koffset] - kbeg[koffset];
                tmax[1 - side] += kend[koffset] - kbeg[koffset];
                numRotates++;
                CalcRotates(1 - side, tmin, tmax, kend[koffset], koffset + 1, false);
                numRotates--;
                tmax[side] -= kend[koffset] - kbeg[koffset];
                tmax[1 - side] -= kend[koffset] - kbeg[koffset];

                // rotate twice
                tmax[side] += kend[koffset] - kbeg[koffset];
                tmin[1 - side] += 1;
                tmax[1 - side] += kend[koffset] - kbeg[koffset] - 1;
                numRotates += 2;
                CalcRotates(side, tmin, tmax, kend[koffset], koffset + 1, false);
                numRotates -= 2;
                tmax[side] -= kend[koffset] - kbeg[koffset];
                tmin[1 - side] -= 1;
                tmax[1 - side] -= kend[koffset] - kbeg[koffset] - 1;

            }

        } else {
            tmin[side] += kbeg[koffset] - noffset;
            tmax[side] += kbeg[koffset] - noffset;
            CalcRotates(side, tmin, tmax, kbeg[koffset], koffset, true);
            tmin[side] -= kbeg[koffset] - noffset;
            tmax[side] -= kbeg[koffset] - noffset;
        }
    }

    public static int[] kbeg;
    public static int[] kend;
    public static int n = 0;
    public static int k = 0;
    public static int numRotates = 0;
    public static int minNumRotates = 0;

    public static void main(final String[] args) throws IOException {
        final FastScanner scanner = new FastScanner();
        n = scanner.nextInt();
        k = scanner.nextInt();

        kbeg = new int[k];
        kend = new int[k];

        for (int i = 0; i < k; i++) {
            kbeg[i] = scanner.nextInt();
            kend[i] = scanner.nextInt();
        }
        final int[] tmin = new int[2];
        final int[] tmax = new int[2];

        CalcRotates(0, tmin, tmax, 0, 0, false);
        if (minNumRotates > 0) {
            System.out.println("Full");
            System.out.println(minNumRotates);
        } else {
            System.out.println("Hungry");
        }
    }
}