#include <bits/stdc++.h>
using namespace std;
int n, m, w, x, vis[2][100007] = {0}, s, stop = 0, draw = 0, f[100007] = {0};
vector<int> v[100007], res;
void sol(int id, int time) {
  if (stop) return;
  if (f[id]) draw = 1;
  if (vis[time % 2][id]) return;
  res.push_back(id);
  f[id] = 1;
  vis[time % 2][id] = 1;
  int sz = v[id].size();
  for (int i = 0; i < sz; i++) sol(v[id][i], time + 1);
  if (!sz && time % 2 == 0) stop = 1;
  if (stop) return;
  res.pop_back();
  f[id] = 0;
}
int main() {
  ios::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  cin >> n >> m;
  for (int i = 1; i <= n; i++) {
    cin >> w;
    while (w--) {
      cin >> x;
      v[i].push_back(x);
    }
  }
  cin >> s;
  sol(s, 1);
  if (stop) {
    cout << "Win" << endl;
    for (int i = 0; i < res.size(); i++) cout << res[i] << " ";
  } else if (draw)
    cout << "Draw";
  else
    cout << "Lose";
}
