#include <bits/stdc++.h>
using namespace std;
int r, n, parity, mat[110][3];
int main() {
  scanf("%d %d", &r, &n);
  parity = (r + n) % 2;
  for (int i = 1; i <= n; i++) {
    int x, y;
    scanf("%d %d", &x, &y);
    mat[x][y - 1] = 1;
  }
  int r0 = -1;
  int r1 = -1;
  for (int i = 1; i <= r; i++) {
    if (mat[i][0] == 1) {
      parity ^= 1;
      r0 = i - 1;
      break;
    }
    if (mat[i][1] == 1) {
      r0 = i - 1;
      break;
    }
  }
  if (r0 == -1) {
    if (r % 2)
      printf("WIN\n");
    else
      printf("LOSE\n");
    return 0;
  }
  for (int i = r; i >= 1; i--) {
    if (mat[i][0] == 1) {
      parity ^= 1;
      r1 = r - i;
      break;
    }
    if (mat[i][1] == 1) {
      r1 = r - i;
      break;
    }
  }
  if (parity == 0 && r0 == r1)
    printf("LOSE\n");
  else if (abs(r0 - r1) >= 2)
    printf("WIN\n");
  else if (abs(r0 - r1) < 2 && parity == 1)
    printf("WIN\n");
  else if (abs(r0 - r1) == 1 && parity == 0) {
    if ((r0 / 2 + r1 / 2) % 2 == 0)
      printf("LOSE\n");
    else
      printf("WIN\n");
  }
  return 0;
}
