#include <bits/stdc++.h>
using namespace std;
vector<int> g[300005];
int a[300005], b[300005], cnt[300005], f[300005], level[300005];
int n, m;
void dfs(int x) {
  for (auto v : g[x]) {
    if (v == f[x] || f[v]) continue;
    f[v] = x;
    level[v] = level[x] + 1;
    dfs(v);
  }
}
vector<int> vecs, vect;
void solve(int s, int t) {
  vecs.clear();
  vect.clear();
  vecs.push_back(s);
  vect.push_back(t);
  while (s != t) {
    if (level[s] < level[t]) {
      t = f[t];
      vect.push_back(t);
    } else {
      s = f[s];
      vecs.push_back(s);
    }
  }
}
int main() {
  int i, q, j, ans = 0, u, v;
  scanf("%d%d", &n, &m);
  for (i = 0; i < m; i++) {
    scanf("%d%d", &u, &v);
    g[u].push_back(v);
    g[v].push_back(u);
  }
  scanf("%d", &q);
  for (i = 0; i < q; i++) {
    scanf("%d%d", &a[i], &b[i]);
    cnt[a[i]]++;
    cnt[b[i]]++;
  }
  for (i = 1; i <= n; i++) {
    if (cnt[i] % 2 != 0) ans++;
  }
  if (ans == 0) {
    f[1] = 1;
    level[1] = 1;
    dfs(1);
    printf("YES\n");
    for (i = 0; i < q; i++) {
      solve(a[i], b[i]);
      printf("%d\n", vecs.size() + vect.size() - 1);
      for (j = 0; j < vecs.size() - 1; j++) {
        printf("%d ", vecs[j]);
      }
      for (j = vect.size() - 1; j >= 0; j--) {
        printf("%d ", vect[j]);
      }
      printf("\n");
    }
  } else {
    printf("NO\n%d\n", ans / 2);
  }
  return 0;
}

### Prompt

Create a solution in Cpp for the following problem:

She does her utmost to flawlessly carry out a person's last rites and preserve the world's balance of yin and yang.

Hu Tao, being the little prankster she is, has tried to scare you with this graph problem! You are given a connected undirected graph of n nodes with m edges. You also have q queries. Each query consists of two nodes a and b.

Initially, all edges in the graph have a weight of 0. For each query, you must choose a simple path starting from a and ending at b. Then you add 1 to every edge along this path. Determine if it's possible, after processing all q queries, for all edges in this graph to have an even weight. If so, output the choice of paths for each query. 

If it is not possible, determine the smallest number of extra queries you could add to make it possible. It can be shown that this number will not exceed 10^{18} under the given constraints.

A simple path is defined as any path that does not visit a node more than once.

An edge is said to have an even weight if its value is divisible by 2.

Input

The first line contains two integers n and m (2 ≤ n ≤ 3 ⋅ 10^5, n-1 ≤ m ≤ min{\left((n(n-1))/(2), 3 ⋅ 10^5\right)}).

Each of the next m lines contains two integers x and y (1 ≤ x, y ≤ n, x≠ y) indicating an undirected edge between node x and y. The input will not contain self-loops or duplicate edges, and the provided graph will be connected.

The next line contains a single integer q (1 ≤ q ≤ 3 ⋅ 10^5).

Each of the next q lines contains two integers a and b (1 ≤ a, b ≤ n, a ≠ b), the description of each query.

It is guaranteed that nq ≤ 3 ⋅ 10^5.

Output

If it is possible to force all edge weights to be even, print "YES" on the first line, followed by 2q lines indicating the choice of path for each query in the same order the queries are given. For each query, the first line should contain a single integer x: the number of nodes in the chosen path. The next line should then contain x spaced separated integers p_i indicating the path you take (p_1 = a, p_x = b and all numbers should fall between 1 and n). This path cannot contain duplicate nodes and must be a valid simple path in the graph.

If it is impossible to force all edge weights to be even, print "NO" on the first line and the minimum number of added queries on the second line.

Examples

Input


6 7
2 1
2 3
3 5
1 4
6 1
5 6
4 5
3
1 4
5 1
4 5


Output


YES
2
1 4
4
5 3 2 1
5
4 1 2 3 5


Input


5 7
4 3
4 5
2 1
1 4
1 3
3 5
3 2
4
4 2
3 5
5 1
4 5


Output


NO
2

Note

Here is what the queries look like for the first test case (red corresponds to the 1st query, blue 2nd query, and green 3rd query): 

<image> Notice that every edge in the graph is part of either 0 or 2 colored query edges.

The graph in the second test case looks like this: 

<image> There does not exist an assignment of paths that will force all edges to have even weights with the given queries. One must add at least 2 new queries to obtain a set of queries that can satisfy the condition.

### Response

```cpp
#include <bits/stdc++.h>
using namespace std;
vector<int> g[300005];
int a[300005], b[300005], cnt[300005], f[300005], level[300005];
int n, m;
void dfs(int x) {
  for (auto v : g[x]) {
    if (v == f[x] || f[v]) continue;
    f[v] = x;
    level[v] = level[x] + 1;
    dfs(v);
  }
}
vector<int> vecs, vect;
void solve(int s, int t) {
  vecs.clear();
  vect.clear();
  vecs.push_back(s);
  vect.push_back(t);
  while (s != t) {
    if (level[s] < level[t]) {
      t = f[t];
      vect.push_back(t);
    } else {
      s = f[s];
      vecs.push_back(s);
    }
  }
}
int main() {
  int i, q, j, ans = 0, u, v;
  scanf("%d%d", &n, &m);
  for (i = 0; i < m; i++) {
    scanf("%d%d", &u, &v);
    g[u].push_back(v);
    g[v].push_back(u);
  }
  scanf("%d", &q);
  for (i = 0; i < q; i++) {
    scanf("%d%d", &a[i], &b[i]);
    cnt[a[i]]++;
    cnt[b[i]]++;
  }
  for (i = 1; i <= n; i++) {
    if (cnt[i] % 2 != 0) ans++;
  }
  if (ans == 0) {
    f[1] = 1;
    level[1] = 1;
    dfs(1);
    printf("YES\n");
    for (i = 0; i < q; i++) {
      solve(a[i], b[i]);
      printf("%d\n", vecs.size() + vect.size() - 1);
      for (j = 0; j < vecs.size() - 1; j++) {
        printf("%d ", vecs[j]);
      }
      for (j = vect.size() - 1; j >= 0; j--) {
        printf("%d ", vect[j]);
      }
      printf("\n");
    }
  } else {
    printf("NO\n%d\n", ans / 2);
  }
  return 0;
}

```