#include <bits/stdc++.h>
using namespace std;
typedef long double ld;
int a[222], b[222];
int main() {
  int n, m;
  cin >> n >> m;
  for (int i = 1; i <= m; ++i) {
    cin >> a[i] >> b[i];
  }
  if (m == 0 && n % 2 == 1) {
    cout << "WIN" << endl;
  } else if (m == 0 && n % 2 == 0) {
    cout << "LOSE" << endl;
  } else {
    for (int i = 1; i <= m; ++i) {
      for (int j = 1; j + 1 <= m; ++j) {
        if (a[j] > a[j + 1]) {
          swap(a[j], a[j + 1]);
          swap(b[j], b[j + 1]);
        }
      }
    }
    int cur_answer = a[1] - 1;
    for (int i = 1; i < m; ++i) {
      int tmp;
      if (b[i] != b[i + 1]) {
        tmp = (a[i] + a[i + 1]);
      } else {
        tmp = (a[i] + a[i + 1] + 1);
      }
      cur_answer ^= (tmp & 1);
    }
    cur_answer ^= (n - a[m]);
    if (cur_answer)
      cout << "WIN" << endl;
    else
      cout << "LOSE" << endl;
  }
  return 0;
}
