#include <bits/stdc++.h>
#pragma GCC optimize("O3")
#pragma GCC target("sse4")
using namespace std;
const int maxn = 100100;
int s[2][maxn], ci;
vector<int> nxt[maxn], p;
void dfs(int c, int u) {
  if (s[c][u]) {
    if (s[c][u] == 1) ci = 1;
    return;
  }
  s[c][u] = 1;
  p.push_back(u);
  if (nxt[u].size() == 0 && c == 1) {
    cout << "Win" << endl;
    for (int v : p) cout << v << " ";
    cout << endl;
    exit(0);
  }
  for (int n : nxt[u]) {
    dfs(c ^ 1, n);
  }
  p.pop_back();
  s[c][u] = 2;
}
int main() {
  int n, m;
  cin >> n >> m;
  for (int e = 1; e <= n; e++) {
    int c;
    cin >> c;
    while (c--) {
      int x;
      cin >> x;
      nxt[e].push_back(x);
    }
  }
  int st;
  cin >> st;
  dfs(0, st);
  if (ci)
    cout << "Draw" << endl;
  else
    cout << "Lose" << endl;
  return 0;
}
