#include <bits/stdc++.h>
using namespace std;
vector<vector<int> > G, G1;
int used1[100004][2];
int pred[100004][2];
int rrr[100004];
vector<int> used;
vector<int> T;
vector<int> fromcolor;
vector<int> color;
int c;
bool draw;
void DFS(int v) {
  used[v] = 1;
  for (int i = 0; i < G[v].size(); ++i) {
    if (!used[G[v][i]]) {
      DFS(G[v][i]);
    }
  }
  T.push_back(v);
}
void DFS3(int v, int c) {
  if (rrr[v] == 1) draw = 1;
  int c1 = (c + 1) % 2;
  for (int i = 0; i < G[v].size(); ++i) {
    if (used1[G[v][i]][c1] == 0) {
      used1[G[v][i]][c1] = 1;
      pred[G[v][i]][c1] = v;
      DFS3(G[v][i], c1);
    }
  }
}
int cnt;
void DFS1(int v) {
  color[v] = c;
  ++cnt;
  for (int i = 0; i < G1[v].size(); ++i) {
    if (!color[G1[v][i]]) DFS1(G1[v][i]);
  }
}
void DFS11(int v) {
  rrr[v] = 1;
  for (int i = 0; i < G1[v].size(); ++i) {
    if (color[G1[v][i]] == c && rrr[G1[v][i]] == 0) DFS11(G1[v][i]);
  }
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  ;
  int n, m;
  cin >> n >> m;
  G.resize(n);
  G1.resize(n);
  used.resize(n);
  color.resize(n);
  for (int i = 0; i < n; ++i) {
    int c;
    cin >> c;
    G[i].resize(c);
    for (int i1 = 0; i1 < c; ++i1) {
      cin >> G[i][i1];
      --G[i][i1];
      G1[G[i][i1]].push_back(i);
    }
  }
  for (int i = 0; i < n; ++i) {
    if (used[i] == 0) DFS(i);
  }
  for (int i = T.size() - 1; i >= 0; --i) {
    if (color[T[i]] == 0) {
      ++c;
      cnt = 0;
      DFS1(T[i]);
      if (cnt > 1) {
        DFS11(T[i]);
      }
    }
  }
  int s;
  cin >> s;
  --s;
  DFS3(s, 0);
  int v = -1, c1 = -1;
  for (int i = 0; i < n; ++i) {
    if (G[i].size() == 0 && used1[i][1] == 1) {
      v = i;
      c1 = 1;
      break;
    }
  }
  if (v != -1) {
    cout << "Win" << endl;
    vector<int> ans;
    while (!(v == s && c1 == 0)) {
      ans.push_back(v);
      v = pred[v][c1];
      c1 = (c1 + 1) % 2;
    }
    ans.push_back(s);
    for (int i = ans.size() - 1; i >= 0; --i) cout << ans[i] + 1 << " ";
    cout << endl;
    return 0;
  }
  if (draw)
    cout << "Draw" << endl;
  else
    cout << "Lose" << endl;
  return 0;
}
