#include <bits/stdc++.h>
using namespace std;
const int64_t INF = 1e9, MOD = 1e9 + 7, MAXN = 1e5 + 7, MAX = 5;
const long double EPS = 1e-9, PI = acos(-1);
int64_t n, m, s;
vector<vector<int64_t>> graph;
vector<int64_t> way, used[2];
bool dfs(int64_t vert, int64_t now) {
  used[now][vert] = 1;
  way.push_back(vert + 1);
  if (graph[vert].empty() && now) return true;
  for (int64_t elem : graph[vert]) {
    if (!used[now ^ 1][elem] && dfs(elem, now ^ 1)) return true;
  }
  way.pop_back();
  return false;
}
bool check_cycle(int64_t vert, int64_t now) {
  used[now][vert] = 2;
  for (int64_t elem : graph[vert]) {
    if (used[now ^ 1][elem] == 2 ||
        (used[now ^ 1][elem] < 2 && check_cycle(elem, now ^ 1))) {
      return true;
    }
  }
  used[now][vert] = 3;
  return false;
}
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  cin >> n >> m;
  graph.resize(n);
  for (int64_t i = 0; i < n; ++i) {
    int64_t c, v;
    cin >> c;
    for (int64_t j = 0; j < c; ++j) {
      cin >> v;
      graph[i].push_back(v - 1);
    }
  }
  cin >> s;
  s--;
  used[0].resize(n);
  used[1].resize(n);
  if (dfs(s, 0)) {
    cout << "Win" << endl;
    for (int64_t elem : way) cout << elem << " ";
  } else
    cout << (check_cycle(s, 0) ? "Draw" : "Lose") << endl;
  return 0;
}
