There are multiple test cases.
Each case starts with a line containing two integers $n$ and $q$ seperated by a space.
Next $q$ lines in every test case will include four integers $a$, $b$, $c$, $d$ per line, seperated by $3$ spaces.
It is guaranteed that $\forall t \in \{a,b,c,d\},|t| \le 10^9$ and $n,q \in [0,5 \times 10^4]$.
It is guaranteed that the sum of $n$ and the sum of $q$ in all test cases are both no larger than $3 \times 10^5$.