#include <bits/stdc++.h>
using namespace std;
const int maxn = 110;
int r, n;
int h[maxn + 10];
int f[maxn + 10];
int g[maxn + 10];
int k[maxn + 10];
vector<int> chnim;
int getnim() {
  sort((chnim).begin(), (chnim).end());
  chnim.resize(unique((chnim).begin(), (chnim).end()) - chnim.begin());
  if (!(int)(chnim).size() || chnim[0] != 0) return 0;
  for (int i = 0; i < (int)(chnim).size(); ++i)
    if (i == (int)(chnim).size() - 1 || chnim[i] + 1 != chnim[i + 1])
      return chnim[i] + 1;
  return chnim.back() + 1;
}
vector<pair<int, int> > vec;
void stat(int x) {
  if (x)
    cout << "WIN" << endl;
  else
    cout << "LOSE" << endl;
}
int main() {
  ios::sync_with_stdio(false);
  cin >> r >> n;
  for (int i = 0; i < n; ++i) {
    int t1, t2;
    cin >> t1 >> t2;
    t1--;
    t2--;
    vec.push_back(pair<int, int>(t1, t2));
  }
  for (int i = 1; i < maxn; ++i) {
    chnim.clear();
    for (int j = 0; j < i; ++j) chnim.push_back((g[j] ^ g[i - j - 1]));
    for (int j = 1; j < i - 1; ++j) chnim.push_back((f[j] ^ f[i - j - 1]));
    g[i] = getnim();
    chnim.clear();
    for (int j = 0; j < i - 1; ++j) chnim.push_back((g[j] ^ f[i - j - 1]));
    for (int j = 1; j < i; ++j) chnim.push_back((f[j] ^ g[i - j - 1]));
    f[i] = getnim();
  }
  for (int i = 1; i < maxn; ++i) {
    chnim.clear();
    for (int j = 0; j < i; ++j) chnim.push_back((h[j] ^ g[i - j - 1]));
    for (int j = 0; j < i - 1; ++j) chnim.push_back((h[j] ^ f[i - j - 1]));
    h[i] = getnim();
  }
  for (int i = 1; i < maxn; ++i) {
    chnim.clear();
    for (int j = 0; j < i; ++j) chnim.push_back((h[j] ^ h[i - j - 1]));
    k[i] = getnim();
  }
  if (n == 0)
    stat(k[r]);
  else {
    sort((vec).begin(), (vec).end());
    int ans = 0;
    for (int i = 0; i < n - 1; ++i) {
      int dis = vec[i + 1].first - vec[i].first - 1;
      if (vec[i].second == vec[i + 1].second)
        ans = (ans ^ g[dis]);
      else
        ans = (ans ^ f[dis]);
    }
    ans = (ans ^ h[vec[0].first]);
    ans = (ans ^ h[r - vec.back().first - 1]);
    stat(ans);
  }
  return 0;
}
