The input starts with one line containing one integer $T$, the number of test cases.$T$ test cases follow.
Each test case begins with a line containing three integers: $N$, $M$, and $K$: the number of different kinds of stamps available, the number of stamp sets available, and the maximum number of stamp sets that Alice can buy.
$M$ lines follow; the $i^{th} of these lines represents the $i^{th} stamp set and contains two integers, $L_i$ and $R_i$, which represent the inclusive range of the numbers of the stamps available in that set.
$1 \leq T \leq 100$
$1 \leq K \leq M$
$1 \leq N, M \leq 2000$
$1 \leq L_i \leq R_i \leq N$