#include <bits/stdc++.h>
using namespace std;
vector<int> ar[200005];
int vis[2][200005];
vector<int> ans;
bool draw = false;
bool d = false;
int n, m, t, u, pos;
void dfs(int p, int count) {
  if (vis[count][p]) {
    if (vis[count][p] == 1) d = true;
    return;
  }
  ans.push_back(p);
  if (ar[p].size() == 0 && count == 1) {
    cout << "Win" << endl;
    for (int i = 0; i < ans.size(); i++) {
      cout << ans[i] << " ";
    }
    exit(0);
  }
  vis[count][p] = 1;
  for (int i = 0; i < ar[p].size(); i++) {
    dfs(ar[p][i], count ^ 1);
  }
  vis[count][p] = 9;
  ans.pop_back();
}
int main() {
  cin >> n >> m;
  for (int i = 1; i <= n; i++) {
    cin >> t;
    while (t-- > 0) {
      cin >> u;
      ar[i].push_back(u);
    }
  }
  cin >> pos;
  dfs(pos, 0);
  if (d)
    cout << "Draw" << endl;
  else
    cout << "Lose" << endl;
  return 0;
}
