Problem: Bob has a simple undirected connected graph (without self-loops and multiple edges). He wants to learn whether his graph is bipartite (that is, you can paint all vertices of the graph into two colors so that there is no edge connecting two vertices of the same color) or not. As he is not very good at programming, he asked Alice for help. He does not want to disclose his graph to Alice, but he agreed that Alice can ask him some questions about the graph.

The only question that Alice can ask is the following: she sends s — a subset of vertices of the original graph. Bob answers with the number of edges that have both endpoints in s. Since he doesn't want Alice to learn too much about the graph, he allows her to ask no more than 20000 questions. Furthermore, he suspects that Alice might introduce false messages to their communication channel, so when Alice finally tells him whether the graph is bipartite or not, she also needs to provide a proof — either the partitions themselves or a cycle of odd length.

Your task is to help Alice to construct the queries, find whether the graph is bipartite. 

Input

The first line contains a single integer n (1 ≤ n ≤ 600) — the number of vertices in Bob's graph.

Interaction

First, read an integer n (1≤ n≤ 600) — the number of vertices in Bob's graph.

To make a query, print two lines. First of which should be in the format "? k" (1 ≤ k ≤ n), where k is the size of the set to be queried. The second line should contain k space separated distinct integers s_1, s_2, ..., s_k (1 ≤ s_i ≤ n) — the vertices of the queried set.

After each query read a single integer m (0 ≤ m ≤ (n(n-1))/(2)) — the number of edges between the vertices of the set \\{s_i\}.

You are not allowed to ask more than 20000 queries.

If m = -1, it means that you asked more queries than allowed, or asked an invalid query. Your program should immediately terminate (for example, by calling exit(0)). You will receive Wrong Answer; it means that you asked more queries than allowed, or asked an invalid query. If you ignore this, you can get other verdicts since your program will continue to read from a closed stream.

After printing a query do not forget to print end of line and flush the output. Otherwise, you will get Idleness limit exceeded. To do this, use:

  * fflush(stdout) or cout.flush() in C++;
  * System.out.flush() in Java;
  * flush(output) in Pascal;
  * stdout.flush() in Python;
  * see documentation for other languages.



When you know the answer, you need to print it.

The format of the answer depends on whether the graph is bipartite or not.

If the graph is bipartite, print two lines. The first should contain the letter "Y" (short for "YES") followed by a space, and then a single integer s (0 ≤ s ≤ n) — the number of vertices in one of the partitions. Second line should contain s integers a_1, a_2, ..., a_s — vertices belonging to the first partition. All a_i must be distinct, and all edges in the main graph must have exactly one endpoint in the set \\{a_i\}.

If the graph is not bipartite, print two lines. The first should contain the letter "N" (short for "NO") followed by a space, and then a single integer l (3 ≤ l ≤ n) — the length of one simple cycle of odd length. Second line should contain l integers c_1, c_2, ..., c_l — the vertices along the cycle. It must hold that for all 1 ≤ i ≤ l, there is an edge \\{c_i, c_{(i mod l)+1}\} in the main graph, and all c_i are distinct.

If there are multiple possible answers, you may print any of them.

Hacks format For hacks, use the following format:

The first line contains two integers n and m~(1 ≤ n ≤ 600, 0 ≤ m ≤ (n(n-1))/(2)) — the number of vertices and edges of the graph, respectively.

Each of the next m lines contains two integers u_i and v_i~(1 ≤ u_i, v_i ≤ n) mean that there is an edge between u_i and v_i. There must not be any multiple edges, no loops, and the graph must be connected.

For example, you need to use this test to get the first sample:
    
    
      
    4 4  
    4 1  
    1 3  
    3 2  
    2 4  
    

Examples

Input

4
4
0
1
1
1
0

Output

? 4 
1 2 3 4
? 2
1 2
? 2
1 3
? 2
1 4
? 2
2 4
? 2
3 4
Y 2
1 2

Input

4
4
3

Output

? 4
1 4 2 3
? 3
1 2 4
N 3
2 1 4

Note

In the first case, Alice learns that there are 4 edges in the whole graph. Over the course of the next three queries, she learns that vertex 1 has two neighbors: 3 and 4. She then learns that while vertex 2 is adjacent to 4, the vertex 3 isn't adjacent to 4. There is only one option for the remaining edge, and that is (2, 3). This means that the graph is a cycle on four vertices, with (1, 2) being one partition and (3, 4) being the second. Here, it would be also valid to output "3 4" on the second line.

In the second case, we also have a graph on four vertices and four edges. In the second query, Alice learns that there are three edges among vertices (1, 2, 4). The only way this could possibly happen is that those form a triangle. As the triangle is not bipartite, Alice can report it as a proof. Notice that she does not learn where the fourth edge is, but she is able to answer Bob correctly anyway.

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
using namespace std;
const int MOD = (int)1e9 + 7;
const int FFTMOD = 119 << 23 | 1;
const int INF = (int)1e9 + 23111992;
const long long LINF = (long long)1e18 + 23111992;
const long double PI = acos((long double)-1);
const long double EPS = 1e-9;
inline long long gcd(long long a, long long b) {
  long long r;
  while (b) {
    r = a % b;
    a = b;
    b = r;
  }
  return a;
}
inline long long lcm(long long a, long long b) { return a / gcd(a, b) * b; }
inline long long fpow(long long n, long long k, int p = MOD) {
  long long r = 1;
  for (; k; k >>= 1) {
    if (k & 1) r = r * n % p;
    n = n * n % p;
  }
  return r;
}
template <class T>
inline int chkmin(T& a, const T& val) {
  return val < a ? a = val, 1 : 0;
}
template <class T>
inline int chkmax(T& a, const T& val) {
  return a < val ? a = val, 1 : 0;
}
inline unsigned long long isqrt(unsigned long long k) {
  unsigned long long r = sqrt(k) + 1;
  while (r * r > k) r--;
  return r;
}
inline unsigned long long icbrt(unsigned long long k) {
  unsigned long long r = cbrt(k) + 1;
  while (r * r * r > k) r--;
  return r;
}
inline void addmod(int& a, int val, int p = MOD) {
  if ((a = (a + val)) >= p) a -= p;
}
inline void submod(int& a, int val, int p = MOD) {
  if ((a = (a - val)) < 0) a += p;
}
inline int mult(int a, int b, int p = MOD) { return (long long)a * b % p; }
inline int inv(int a, int p = MOD) { return fpow(a, p - 2, p); }
inline int sign(long double x) { return x < -EPS ? -1 : x > +EPS; }
inline int sign(long double x, long double y) { return sign(x - y); }
mt19937 mt(chrono::high_resolution_clock::now().time_since_epoch().count());
inline int myrand() { return abs((int)mt()); }
const int maxn = 600 + 5;
int n;
int f[maxn];
int g[maxn];
vector<int> adj[maxn];
int vis[maxn];
int ask(vector<int> ver) {
  static int num = 0;
  sort((ver).begin(), (ver).end()),
      (ver).erase(unique((ver).begin(), (ver).end()), (ver).end());
  if (int((ver).size()) <= 1) {
    return 0;
  }
  assert(num++ < 20000);
  cout << "? " << int((ver).size()) << "\n";
  for (int i = (0); i < (int((ver).size())); ++i)
    cout << ver[i] + 1 << " \n"[i == int((ver).size()) - 1];
  cout.flush();
  int res;
  cin >> res;
  if (res == -1) {
    exit(0);
  }
  return res;
}
int from[maxn];
void dfs(int u, int p) {
  vis[u] = 1;
  for (int v : adj[u]) {
    if (v != p && !vis[v]) {
      from[v] = u;
      dfs(v, u);
    }
  }
}
void chemthan() {
  srand(time(NULL));
  cin >> n;
  queue<int> que;
  f[0] = 1, que.push(0);
  while (int((que).size())) {
    int u = que.front();
    que.pop();
    while (1) {
      vector<int> ver;
      for (int i = (0); i < (n); ++i)
        if (!f[i]) ver.push_back(i);
      int x = ask(ver);
      ver.push_back(u);
      int y = ask(ver);
      ver.pop_back();
      if (x == y) break;
      while (int((ver).size()) > 1) {
        vector<int> ver1, ver2;
        for (int i = (0); i < (int((ver).size())); ++i) {
          if (i < int((ver).size()) / 2) {
            ver1.push_back(ver[i]);
          } else {
            ver2.push_back(ver[i]);
          }
        }
        if (myrand() & 1) {
          swap(ver1, ver2);
        }
        int x = ask(ver1);
        ver1.push_back(u);
        int y = ask(ver1);
        ver1.pop_back();
        if (x < y) {
          ver = ver1;
        } else {
          ver = ver2;
        }
      }
      assert(int((ver).size()) == 1);
      int v = ver[0];
      if (!f[v]) {
        g[v] = g[u] ^ 1;
        adj[u].push_back(v), adj[v].push_back(u);
        f[v] = 1, que.push(v);
      }
    }
  }
  vector<int> ver1, ver2;
  for (int i = (0); i < (n); ++i) {
    if (!g[i]) {
      ver1.push_back(i);
    } else {
      ver2.push_back(i);
    }
  }
  for (vector<int> v : {ver1, ver2}) {
    if (ask(v)) {
      while (int((v).size()) > 2) {
        while (1) {
          random_shuffle((v).begin(), (v).end());
          vector<int> ver1, ver2;
          for (int i = (0); i < (int((v).size())); ++i) {
            if (i < int((v).size()) / 2) {
              ver1.push_back(v[i]);
            } else {
              ver2.push_back(v[i]);
            }
          }
          if (myrand() & 1) {
            swap(ver1, ver2);
          }
          if (ask(ver1)) {
            v = ver1;
            break;
          }
          if (ask(ver2)) {
            v = ver2;
            break;
          }
        }
      }
      assert(int((v).size()) == 2);
      int st = v[0];
      int ed = v[1];
      dfs(st, -1);
      assert(vis[ed]);
      vector<int> cycle;
      while (ed != st) {
        cycle.push_back(ed);
        ed = from[ed];
      }
      cycle.push_back(ed);
      cout << "N " << int((cycle).size()) << "\n";
      for (int i = (0); i < (int((cycle).size())); ++i)
        cout << cycle[i] + 1 << " \n"[i == int((cycle).size()) - 1];
      cout.flush();
      return;
    }
  }
  cout << "Y " << int((ver1).size()) << "\n";
  for (int i = (0); i < (int((ver1).size())); ++i)
    cout << ver1[i] + 1 << " \n"[i == int((ver1).size()) - 1];
  cout.flush();
}
int main(int argc, char* argv[]) {
  if (argc > 1) {
    assert(freopen(argv[1], "r", stdin));
  }
  if (argc > 2) {
    assert(freopen(argv[2], "wb", stdout));
  }
  chemthan();
  cerr << "\nTime elapsed: " << 1000 * clock() / CLOCKS_PER_SEC << "ms\n";
  return 0;
}