#include <bits/stdc++.h>
using namespace std;
const long long infl = 1e18 + 5;
long long n, m, k, q, x, y, f, val, t, i, j;
long long ind, cnt, sz, sm, ans, mx, mn;
long long vis[1000004];
long long dp[1000004][2];
vector<long long> g[1000004], v;
int dfs(int u, int p) {
  if (vis[u] == 2) f = 1;
  if (dp[u][p] != -1) {
    return 0;
  }
  vis[u] = 2;
  dp[u][p] = 1;
  if (g[u].size() == 0 && p == 0) {
    v.emplace_back(u);
    return 1;
  }
  int re;
  for (auto it : g[u]) {
    re = dfs(it, p ^ 1);
    if (re == 1) {
      v.emplace_back(u);
      return 1;
    }
  }
  vis[u] = 0;
  return 0;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  if (fopen("inp.txt", "r")) {
    freopen("myfile.txt", "w", stdout);
    freopen("inp.txt", "r", stdin);
  }
  cin >> n >> m;
  for (i = 1; i < n + 1; i++) {
    cin >> x;
    for (j = 0; j < x; j++) {
      cin >> y;
      g[i].emplace_back(y);
    }
  }
  int s;
  cin >> s;
  memset(dp, -1, sizeof(dp));
  dfs(s, 1);
  if (!v.empty()) {
    cout << "Win\n";
    reverse(v.begin(), v.end());
    for (i = 0; i < v.size(); i++) cout << v[i] << " ";
  } else if (f)
    cout << "Draw";
  else
    cout << "Lose";
  return 0;
}
