Chef has a recipe book. He wishes to read it completely as soon as possible so that he could try to cook the dishes mentioned in the book.
The pages of the book are numbered $1$ through $N$. Over a series of days, Chef wants to read each page. On each day, Chef can choose to read any set of pages such that there is no prime that divides the numbers of two or more of these pages, i.e. the numbers of pages he reads on the same day must be pairwise coprime. For example, Chef can read pages $1$, $3$ and $10$ on one day, since $(1, 3)$, $(3, 10)$ and $(1, 10)$ are pairs of coprime integers; however, he cannot read pages $1$, $3$ and $6$ on one day, as $3$ and $6$ are both divisible by $3$. Since chef might get bored by reading the same recipe again and again, Chef will read every page exactly once.
Given $N$, determine the minimum number of days Chef needs to read the entire book and the pages Chef should read on each of these days.

-----Input-----
- The first line of the input contains a single integer $T$ denoting the number of test cases. The description of $T$ test cases follows.
- The first and only line of each test case contains a single integer $N$.

-----Output-----
For each test case:
- First, print a line containing a single integer $D$ ― the minimum number of days required to read the book. Let's number these days $1$ through $D$.
- Then, print $D$ lines describing the pages Chef should read. For each valid $i$, the $i$-th of these lines should contain an integer $C_i$ followed by a space and $C_i$ space-separated integers ― the numbers of pages Chef should read on the $i$-th day.
If there are multiple solutions with the minimum number of days, you may print any one.

-----Constraints-----
- $1 \le T \le 10$
- $1 \le N \le 10^6$

-----Subtasks-----
Subtask #1 (20 points): $N \le 100$
Subtask #2 (80 points): original constraints

-----Example Input-----
1
5

-----Example Output-----
2
3 1 2 5
2 3 4

-----Explanation-----
Example case 1:
- On the first day, Chef should read three pages: $1$, $2$ and $5$.
- On the second day, Chef should read the remaining two pages: $3$ and $4$.
There are other valid solutions as well.

```python

USER_FILENAME = "<user_code>"
import sys, json, builtins
import math, heapq, bisect, itertools, functools, collections, statistics, fractions, decimal, operator, array, random, re, string, os, pathlib
try:
    import resource as _res
except Exception:
    _res = None
from collections import Counter, defaultdict, deque, OrderedDict
from functools import lru_cache, reduce
from itertools import accumulate, permutations, combinations, product
from math import gcd, ceil, floor, sqrt
from decimal import Decimal
try:
    from typing import *
except Exception:
    pass
try:
    sys.setrecursionlimit(1_000_000)
except Exception:
    pass
try:
    import site as _site
    try:
        _sys_sites = _site.getsitepackages() if hasattr(_site, "getsitepackages") else []
        for _p in _sys_sites:
            if _p and _p not in sys.path:
                sys.path.append(_p)
    except Exception:
        pass
    try:
        _usp = _site.getusersitepackages()
        if isinstance(_usp, str):
            _usp = [_usp]
        for _p in _usp:
            if _p and _p not in sys.path:
                sys.path.append(_p)
    except Exception:
        pass
except Exception:
    pass

ns = {"__name__": "__main__"}
for _k, _v in list(globals().items()):
    if not _k.startswith("_"):
        ns[_k] = _v
_CODE = 'from itertools import combinations\r\n\r\ntry:\r\n    for _ in range(int(input())):\r\n        def __gcd(a, b):\r\n            if a == 0 or b == 0: return 0\r\n            if a == b: return a\r\n            if a > b:\r\n                return __gcd(a - b, b)\r\n            return __gcd(a, b - a)\r\n\r\n\r\n        def areNocoprime(arr):\r\n            if __gcd(arr[0], arr[1]) == 1:\r\n                return True\r\n            else:\r\n                return False\r\n\r\n\r\n        def iscoprime(arr):\r\n            arr2 = list(combinations(arr, 2))\r\n            arr3 = [areNocoprime(i) for i in arr2]\r\n            if False in arr3:\r\n                return False\r\n            return True\r\n\r\n\r\n        def isarraycoprime(arr, n):\r\n            arr2 = []\r\n            arr2.extend(arr)\r\n            arr2.append(n)\r\n            if iscoprime(arr2) is True:\r\n                return arr2\r\n            else:\r\n                return arr\r\n            \r\n        sum = 0\r\n        n = int(input())\r\n        pages = [i for i in range(1, n + 1)]\r\n        big_arr = []\r\n        small_arr = []\r\n        summ = 0\r\n        while pages.count(0) != n:\r\n            for i in range(0, n):\r\n                if pages[i] != 0:\r\n                    x = len(small_arr)\r\n                    small_arr = isarraycoprime(small_arr, pages[i])\r\n                    y = len(small_arr)\r\n                    if x != y:\r\n                        pages[i] = 0\r\n            big_arr.append(small_arr)\r\n            small_arr = []\r\n        print(len(big_arr))\r\n        for i in big_arr:\r\n            print(len(i), *i)\r\n\r\nexcept EOFError as e:\r\n    print(end=" ")'
_co = compile(_CODE, USER_FILENAME, "exec")
exec(_co, ns, ns)

```

Measured memory_bytes: 13389