P14951 [HackerEarth] Rhezo has bought a graph with N nodes and M edges. He has a destructive mind and often deletes some nodes(and of course its edges to other nodes of the graph).
普及-
题目描述

Rhezo has bought a graph with N nodes and M edges. He has a destructive mind and often deletes some nodes(and of course its edges to other nodes of the graph).

He will ask you Q queries. Each query is denoted by an integer X, meaning that he will delete the node X. Since he has a destructive mind, he gets satisfied if the the new graph with deleted node has more number of connected components than the original graph.

If satisfied, he wants you to print "Satisfied"(without quotes) and the number of edges that were removed when deleting node X, else print "Not Satisfied"(without quotes). All queries are different, and the original graph is restored after each query.

Input:

First line contains N and M as described in the problem statement. Each of the next M lines contain 2 integers A_i and B_i, meaning that there is an edge between node A and node B. Next line contains a single integer Q, denoting the number of queries. Each of the next Q lines contain a single integer X as described in the problem statement.

Output:

For each of the Q queries, if Rhezo is satisfied(that is the number of connected components of the new graph has increased), print "Satisfied"(without quotes), and the number of edges that will be deleted after a space. Else print "Not Satisfied".

Constraints:

1 ≤ N, M, Q ≤ 10^{2}

1 ≤ A_i, B_i ≤ N

1 ≤ X ≤ N

SAMPLE INPUT
5 5
1 2
2 3
3 4
4 5
3 5
5
1
2
3
4
5

SAMPLE OUTPUT
Not Satisfied
Satisfied 2
Satisfied 3
Not Satisfied
Not Satisfied

Explanation

For the second query, if we remove node 2, the graph disconnects and 2 connected components are formed. One having only {1} and other having {3,4,5}. Clearly, the number of edges removed are 2.

输入格式

见题面

输出格式

见题面

样例输入
100 100 52 70 62 94 81 99 74 78 9 57 55 31 36 52 15 91 50 92 83 87 41 81 86 57 26 99 6 85 39 59 65 43 28 78 36 9 76 62 38 85 18 44 67 54 47 81 96 48 72 78 34 65 11 19 73 36 69 79 73 60 2 16 14 89 76 89 50 13 73 20 56 92 73 2 72 20 49 44 50 34 5 32 95 73 62 19 84 50 55 85 66 68 26 41 9 75 54 33 46 61 24 70 15 96 90 15 91 39 49 50 98 5 33 44 77 95 63 13 44 69 49 9 89 74 50 97 1 55 81 46 67 5 16 33 52 5 48 94 95 48 43 92 52 27 87 80 73 1 92 17 70 93 77 10 66 78 58 66 84 38 12 51 94 79 35 45 83 82 90 29 81 84 20 84 11 58 64 83 11 7 51 32 99 28 41 17 57 98 82 41 87 45 43 81 75 77 77 57 11 67 100 91 50 56 75 12 66 90 95 76 48 45 59 99 72 99 15 29 48 48 21 86 45 63 66 19 91 95 28 1 61 12 92 62 20 18 74 37 59 20 64 6 64 22 4 88 72 70 68 71 18 88 56 62 2 22 80 92 68 7 93 80 71 36 41 42 53 66 30 63 85 93 20 49 66 24 88 37 45 55 59 62 94 14 75 95 87 7 86 54 13 30 33 35 65 26 76 69 91 57 31
样例输出
Satisfied 6 Not Satisfied Not Satisfied Not Satisfied Not Satisfied Not Satisfied Satisfied 3 Satisfied 3 Not Satisfied Not Satisfied Not Satisfied Not Satisfied Not Satisfied Satisfied 2 Not Satisfied Satisfied 2 Not Satisfied Not Satisfied Not Satisfied Satisfied 3 Not Satisfied Satisfied 5 Not Satisfied Satisfied 3 Not Satisfied Not Satisfied Not Satisfied Not Satisfied Satisfied 2 Not Satisfied Not Satisfied Not Satisfied Satisfied 3 Not Satisfied Not Satisfied Not Satisfied Satisfied 3 Not Satisfied Not Satisfied Not Satisfied Not Satisfied Not Satisfied Satisfied 2 Satisfied 3 Not Satisfied Not Satisfied Not Satisfied Satisfied 2 Not Satisfied Not Satisfied Not Satisfied Satisfied 3 Not Satisfied Satisfied 5 Not Satisfied Not Satisfied Not Satisfied Satisfied 2 Not Satisfied Not Satisfied Not Satisfied Satisfied 3 Not Satisfied Not Satisfied Not Satisfied Not Satisfied Not Satisfied Not Satisfied Not Satisfied Not Satisfied Not Satisfied Satisfied 2 Satisfied 6 Not Satisfied Not Satisfied Not Satisfied Not Satisfied Not Satisfied Not Satisfied Not Satisfied Not Satisfied Not Satisfied Satisfied 3 Not Satisfied Not Satisfied Not Satisfied Not Satisfied Not Satisfied Not Satisfied Not Satisfied Not Satisfied Not Satisfied Not Satisfied Not Satisfied Not Satisfied Satisfied 3 Not Satisfied Not Satisfied Not Satisfied Not Satisfied