Consider a collection of segments on a coordinate axis. The coordinates of endpoints are integers from $0$ to $x$. There is no intersecting pair of segments: for any two segments, either one of them contains another, or they have at most one common point.
Your goal is to transform your collection of segments into just a single segment $[0, x]$. No other segments may remain. To achieve this, you can make moves. Each move has one of the following types:
If, at some moment of time, there are two or more equal segments, only one of them remains, while the other disappear instantly.
For an initial collection of segments $S$, let $F(S)$ be the minimum number of coins needed to transform it into just a single segment $[0, x]$.
You are given a collection of $n$ segments. Consider all its $2^n - 1$ non-empty sub-collections, calculate $F$ for each of them, and find the sum of these values modulo $998\,244\,353$.
The first line contains an integer $t$ ($1 \le t \le 10^5$), the number of test cases. The test cases follow.
Each test case starts with a line containing two integers: the number of segments $n$ ($1 \le n \le 10^5$) and the coordinate $x$ ($1 \le x \le 10^9$). The next $n$ lines describe the segments. The $i$-th of these lines contains two integers $\ell_i$ and $r_i$: the endpoints of the $i$-th segment ($0 \le \ell_i < r_i \le x$).
The sum of $n$ over all test cases does not exceed $10^5$.
For each test case, print a line with a single integer: the required sum modulo $998\,244\,353$.