Problem: This is an interactive problem

Ginny is taking an exam on game theory. The professor is tired of hearing the same answers over and over again, so he offered Ginny to play a game instead of a standard exam. 

As known from the course, a combinatorial game on a graph with multiple starting positions is a game with a directed graph and multiple starting vertices holding a token each. Two players take turns moving one of the tokens along the graph edges on each turn. The player who can't make a move loses the game. If both players can play an infinitely long game without losing, a draw is called.

For the exam, the professor drew an acyclic directed graph and chose one of its vertices. Ginny needs to guess the vertex the professor chose. To do so, Ginny can choose a multiset of vertices S several times and ask the professor: "If I put one token in each vertex of the given graph for each occurrence of the vertex in the multiset S, and then one more in the selected vertex, what would be the result of the combinatorial game?". 

Having given the task, the professor left the room to give Ginny some time to prepare for the game. Ginny thinks that she's being tricked because the problem is impossible to solve. Therefore, while the professor is away, she wants to add or remove several edges from the graph. Even though the original graph was acyclic, edges could be added to the graph to make cycles appear.

Interaction

In this task, interaction consists of several phases.

In the first phase, the interactor gives as an input to your program three integers N (1 ≤ N ≤ 1000), M (0 ≤ M ≤ 100 000), T (1 ≤ T ≤ 2000): the number of vertices and edges in the initial graph, and the number of times Ginny has to guess the chosen vertex. The next M lines contain pairs of vertices a_i b_i (1 ≤ a_i, b_i ≤ N): beginning and end of corresponding graph edges. The graph is guaranteed to be acyclic and all of its edges to be distinct.

The solution should print an integer K (0 ≤ K ≤ 4242): the number of edges to change in the graph. The next K lines should contain either "+ a_i b_i" or "- a_i b_i": the beginning and the end of an edge that Ginny has to add or remove accordingly. You are allowed to add preexisting edges to the graph. Operations are performed in the order of appearance, so Ginny is allowed to remove an edge added by the solution. You can only remove an existing edge. The operations can create cycles in the graph. 

The next T phases are dedicated to guessing the chosen vertices. In each phase, the solution can make at most 20 queries and then print the answer. To query a multiset S, the solution should print "? |S|~S_1~S_2~...~S_{|S|}". The total size of all multisets in a single phase should not exceed 20. The interactor will reply with one of the following words: 

  * "Win", if the winner of a combinatorial game with tokens in multiset S and the selected vertex is the first player. 
  * "Lose", if the winner of a combinatorial game with tokens in multiset S and the selected vertex is the second player. 
  * "Draw", if a combinatorial game with tokens in multiset S and selected vertex ends in a draw. 
  * "Slow", if the solution made a 21-st request, or the total size of all multisets in a single phase exceeded 20. In this case, the solution should terminate and receive Wrong Answer verdict. 



As soon as the selected vertex is guessed, that solution should print "! v". If the chosen vertex is guessed correctly, the interactor will print Correct and the solution should either move on to the next phase of guessing or finish its execution if it's the last phase. Otherwise, the interactor will print Wrong, which means that the solution should terminate and will receive the Wrong Answer verdict. 

The interactor can change the chosen vertex based on graph changes and solution actions, but at every given moment of time, at least one vertex that corresponds to all given interactor answers will exist. 

Hack format

Hacks have the following extra limitations: 

  * T = 1 
  * you need to specify a single vertex, chosen by the interactor. 



Hack test format. The first line of input contains three integers N~M~1. The next M lines on input contain edge description in the same format as in the input. The next line contains a single integer v: the number of the chosen vertex. The hack will be successful even if the solution guesses the vertex right, but the vertex will not be the single one to match all performed queries.

Example

Input


3 2 3
1 2
2 3

Lose

Correct

Win

Correct

Draw

Correct

Output


6
+ 2 2
- 1 2
+ 2 3
- 2 2
+ 3 1
+ 2 2
? 0

! 1

? 1 2

! 3

? 5 1 3 1 3 1

! 2

Note

In the sample test, the empty lines represent waiting for the input by the other side of the interaction. The real interactor will not print empty lines, and the solution should not print them either. 

<image>

The image above illustrates the sample test. Added edges are coloured in red, and the removed edges are drawn with a dotted line. Three guessing phases denote different ways of getting the answer. 

  * If the solution will query just the chosen vertex, the interactor will return the result of the game in that vertex. The first player loses only if the chosen vertex has the number 1. 
  * If we add a single vertex 2 to the chosen vertex, then if the chosen vertex is either 1 or 2, the game should end in a draw. If vertex number 3 is chosen, then the first player wins. 
  * If we place three tokens in vertex 1 and two tokens in vertex 3, then the game will end in a draw only if vertex 2 is chosen. If the professor chose vertex 3, the first player will win, if the professor chose vertex 1, then the second player will win. 



In the first test, the interactor will behave as if the chosen vertices are the same as those in the example above. However, if you will try to guess the answer before it limits the options to one single vertex, the solution will get "Wrong Answer", even if you print the same answers. That's because the interactor is allowed to change the chosen vertex if it's consistent with the previous query answers.

Solution (in JAVA):

Solution:
import java.io.*;
import java.math.*;
import java.util.*;
import java.util.stream.*;

public class E {boolean[] vis;ArrayList<Integer> order;int[][] g;
	void dfs(int v) {vis[v] = true;for (int u : g[v]) {if (!vis[u]) {dfs(u);}}order.add(v);}
	static final int K = 20;

	void submit() {	int n = nextInt();int m = nextInt();int t = nextInt();int[] es = new int[2 * m];
		for (int i = 0; i < 2 * m; i++) {es[i] = nextInt() - 1;}
		g = buildDGraph(es, n, m);vis = new boolean[n];order = new ArrayList<>();for (int i = 0; i < n; i++) {if (!vis[i]) {dfs(i);}}
		ArrayList<Integer> head = new ArrayList<>();ArrayList<Integer> ans = new ArrayList<>();
		int[] who = new int[n];
		Arrays.fill(who, -1);
		for (int i = 0; i < n && i < K; i++) {
			int v = order.get(i);
			head.add(v);
			who[v] = i;
			ArrayList<Integer> after = new ArrayList<>();
			for (int j = 0; j < i; j++) {
				after.add(order.get(j));
			}
			for (int u : g[v]) {
				after.remove(Integer.valueOf(u));
			}
			for (int u : after) {
				ans.add(v);
				ans.add(u);
			}
		}

		ArrayList<Integer> rest = new ArrayList<>();
		for (int i = K; i < n; i++) {
			rest.add(order.get(i));
		}
		Collections.shuffle(rest);

		int[] memo = new int[1 << K];
		Arrays.fill(memo, -1);

		ArrayList<Integer> randHead = new ArrayList<>(head);

		for (int v : rest) {
			ans.add(v);
			ans.add(v);
			int curMask = 0;
			for (int u : g[v]) {
				if (who[u] != -1) {
					curMask |= 1 << who[u];
				}
			}
			Collections.shuffle(randHead);
			for (int u : randHead) {
				if (memo[curMask] == -1) {
					break;
				}
				ans.add(v);
				ans.add(test(curMask, who[u]) ? ~u : u);
				curMask ^= 1 << who[u];
			}

			if (memo[curMask] != -1) {
				throw new AssertionError("couldn't make all nodes different");
			}
			memo[curMask] = v;
		}
		if (ans.size() > 2 * 4242) {
			throw new AssertionError("too many edges added");
		}

		out.println(ans.size() / 2);
		for (int i = 0; i < ans.size(); i += 2) {
			int v = ans.get(i);
			int u = ans.get(i + 1);
			if (u >= 0) {
				out.println("+ " + (v + 1) + " " + (u + 1));
			} else {
				out.println("- " + (v + 1) + " " + ((~u) + 1));
			}
		}
		out.flush();

		while (t-- > 0) {
			int[] resp = new int[Math.min(n, K)];
			for (int i = 0; i < resp.length; i++) {
				out.println("? 1 " + (head.get(i) + 1));
				out.flush();
				resp[i] = decode(nextToken());
			}

			int winMask = 0;
			boolean fuck = false;
			for (int i = 0; i < resp.length; i++) {
				if (resp[i] == -1) {
					out.println("! " + (head.get(i) + 1));
					out.flush();
					fuck = true;
					break;
				}
				if (resp[i] == 1) {
					winMask |= 1 << i;
				}
			}
			if (!fuck) {
				if (memo[winMask] == -1) {
					throw new AssertionError("no answer for winMask");
				}
				out.println("! " + (memo[winMask] + 1));
				out.flush();
			}

			nextToken();
		}
	}

	static boolean test(int mask, int i) {return ((mask >> i) & 1) == 1;}

	int decode(String response) {switch (response) {case "Lose":return -1;case "Draw":return 0;case "Win":return 1;default:throw new AssertionError("unknown response");}}

	int[][] buildDGraph(int[] a, int n, int m) {
		if (m == 0) {
			if (a.length == 0) {
				return new int[n][0];
			} else {
				throw new AssertionError();
			}
		}
		if (a.length % m != 0 || a.length < 2 * m) {
			throw new AssertionError("Bad array length");
		}

		int[] deg = new int[n];
		int s = a.length / m;
		for (int i = 0; i < a.length; i += s) {
			deg[a[i]]++;
		}

		int[][] g = new int[n][];
		for (int i = 0; i < n; i++) {
			g[i] = new int[deg[i] * (s - 1)];
		}

		for (int i = s * (m - 1); i >= 0; i -= s) {
			int v = a[i];
			int u = a[i + 1];
			int pv = (--deg[v]) * (s - 1);
			g[v][pv] = u;
			System.arraycopy(a, i + 2, g[v], pv + 1, s - 2);
		}

		return g;
	}

	void test() {}

	void stress() {for (int tst = 0;; tst++) {submit();System.err.println(tst);}}

	E() throws IOException {is = System.in;out = new PrintWriter(System.out);submit();out.close();}

	static final Random rng = new Random();static final int C = 5;

	static int rand(int l, int r) {return l + rng.nextInt(r - l + 1);}

	public static void main(String[] args) throws IOException {new E();}

	private InputStream is;	PrintWriter out;private byte[] buf = new byte[1 << 14];private int bufSz = 0, bufPtr = 0;

	private int readByte() {
		if (bufSz == -1)
			throw new RuntimeException("Reading past EOF");
		if (bufPtr >= bufSz) {
			bufPtr = 0;
			try {
				bufSz = is.read(buf);
			} catch (IOException e) {
				throw new RuntimeException(e);
			}
			if (bufSz <= 0)
				return -1;
		}
		return buf[bufPtr++];
	}

	private boolean isTrash(int c) {return c < 33 || c > 126;}

	private int skip() {int b;while ((b = readByte()) != -1 && isTrash(b));return b;}

	String nextToken() {int b = skip();StringBuilder sb = new StringBuilder();while (!isTrash(b)) {sb.appendCodePoint(b);b = readByte();}return sb.toString();}

	String nextString() {int b = readByte();StringBuilder sb = new StringBuilder();while (!isTrash(b) || b == ' ') {sb.appendCodePoint(b);b = readByte();}return sb.toString();}

	double nextDouble() {return Double.parseDouble(nextToken());}

	char nextChar() {return (char) skip();}

	int nextInt() {
		int ret = 0;
		int b = skip();
		if (b != '-' && (b < '0' || b > '9')) {
			throw new InputMismatchException();
		}
		boolean neg = false;
		if (b == '-') {
			neg = true;
			b = readByte();
		}
		while (true) {
			if (b >= '0' && b <= '9') {
				ret = ret * 10 + (b - '0');
			} else {
				if (b != -1 && !isTrash(b)) {
					throw new InputMismatchException();
				}
				return neg ? -ret : ret;
			}
			b = readByte();
		}
	}

	long nextLong() {long ret = 0;int b = skip();
		if (b != '-' && (b < '0' || b > '9')) {throw new InputMismatchException();}boolean neg = false;
		if (b == '-') {neg = true;b = readByte();}
		while (true) {
			if (b >= '0' && b <= '9') {ret = ret * 10 + (b - '0');
			} else {
				if (b != -1 && !isTrash(b)) {
					throw new InputMismatchException();	}return neg ? -ret : ret;}b = readByte();	}}}