#include <bits/stdc++.h>
using namespace std;
template <typename T>
istream& operator>>(istream& is, vector<T>& v) {
  for (auto& it : v) is >> it;
  return is;
}
template <class L, class R>
ostream& operator<<(ostream& os, pair<L, R> P) {
  return os << "(" << P.first << "," << P.second << ")";
}
template <class T>
ostream& operator<<(ostream& os, vector<T> V) {
  os << "[ ";
  for (auto v : V) os << v << " ";
  return os << "]";
}
template <class T>
ostream& operator<<(ostream& os, set<T> second) {
  os << "{ ";
  for (auto s : second) os << s << " ";
  return os << "}";
}
template <typename Arg1>
void __f(const char* name, Arg1&& arg1) {
  cerr << name << " : " << arg1 << '\n';
}
template <typename Arg1, typename... Args>
void __f(const char* names, Arg1&& arg1, Args&&... args) {
  const char* comma = strchr(names + 1, ',');
  cerr.write(names, comma - names) << " : " << arg1 << " |";
  __f(comma + 1, args...);
}
const int N = 2e5;
vector<int> adj[N];
vector<int> path;
vector<char> vis(N, 'w');
bool cyc = false;
bool dfs(int node) {
  vis[node] = 'g';
  if (node % 2 and ((int)(adj[node]).size()) == 0) {
    path.push_back(node);
    return true;
  }
  for (int child : adj[node]) {
    if (vis[child] == 'b') {
      continue;
    }
    if (vis[child] == 'g') {
      cyc = true;
    } else {
      if (dfs(child)) {
        path.push_back(node);
        return true;
      }
    }
  }
  vis[node] = 'b';
  return false;
}
void solve() {
  int n, m;
  cin >> n >> m;
  for (int i = 0; i < n; ++i) {
    int k;
    cin >> k;
    for (int j = 0; j < k; ++j) {
      int v;
      cin >> v;
      v--;
      adj[2 * i].push_back(2 * v + 1);
      adj[2 * i + 1].push_back(2 * v);
    }
  }
  int r;
  cin >> r;
  r--;
  dfs(2 * r);
  if (((int)(path).size()) == 0) {
    if (cyc) {
      cout << "Draw" << '\n';
    } else {
      cout << "Lose" << '\n';
    }
  } else {
    cout << "Win" << '\n';
    reverse(path.begin(), path.end());
    for (int u : path) {
      cout << u / 2 + 1 << " ";
    }
    cout << '\n';
  }
}
int32_t main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int T = 1;
  while (T--) {
    solve();
  }
  return 0;
}
