You are given a directed graph with $N$ vertices and $M$ edges. For $i = 1, 2, \ldots, M$, the $i$\-th edge is directed from vertex $s_i$ to vertex $t_i$.
Determine whether there is a permutation $P = (P_1, P_2, \ldots, P_N)$ of $(1, 2, \ldots, N)$ that satisfies both of the following conditions, and if there is, provide an example.
* $P_{s_i} \lt P_{t_i}$ for all $i = 1, 2, \ldots, M$.
* $L_i \leq P_i \leq R_i$ for all $i = 1, 2, \ldots, N$.
## Constraints
* $2 \leq N \leq 2 \times 10^5$
* $0 \leq M \leq \min\lbrace 4 \times 10^5, N(N-1) \rbrace$
* $1 \leq s_i, t_i \leq N$
* $s_i \neq t_i$
* $i \neq j \implies (s_i, t_i) \neq (s_j, t_j)$
* $1 \leq L_i \leq R_i \leq N$
* All input values are integers.
## Input
The input is given from Standard Input in the following format:
$N$ $M$
$s_1$ $t_1$
$s_2$ $t_2$
$\vdots$
$s_M$ $t_M$
$L_1$ $R_1$
$L_2$ $R_2$
$\vdots$
$L_N$ $R_N$
[samples]