#pragma GCC optimize ("O3") #pragma GCC target ("avx2") // or sse4 #pragma GCC optimize("unroll-loops") #include using namespace std; const int MAX = 1000000000; int main() { int M, K; cin >> M >> K; assert(2 <= M and M <= MAX); assert(2 <= K and K <= MAX); // (N - 1) % (K + 1) == 0 int b = 0, a = 0; for(int N = 2; N <= M; N++) { if(N % (K + 1) == 1) { ++b; } else { ++a; } } int make = (M - 1) / (K + 1); int kati = M - 1 - make; int latte = 0, malta = 0; bool turn = true; while(kati > 0 or make > 0) { if(turn) { if(kati > 0) { ++latte; --kati; turn ^= 1; } else { ++malta; --make; } } else { if(kati > 0) { ++malta; --kati; turn ^= 1; } else { ++latte; --make; } } } if(latte > malta) cout << "Win\n"; else if(latte == malta) cout << "Draw\n"; else cout << "Lose\n"; }