#include <bits/stdc++.h>
int x[9] = {-1, -1, -1, 0, 0, 0, 1, 1, 1};
int y[9] = {-1, 0, 1, -1, 0, 1, -1, 0, 1};
int dfs(char s[][10], int a, int b, int mov) {
  if (a == 0 && b == 7) {
    return 1;
  }
  if (mov >= 400) {
    return 2;
  }
  int i, j, k;
  int n = 8;
  for (i = 0; i < 10; i++) {
    if (a + x[i] >= 0 && a + x[i] < 8 && b + y[i] >= 0 && b + y[i] < 8 &&
        s[a + x[i]][b + y[i]] != 'S') {
      char c[10][10] = {0};
      int ya = 0;
      k = a + x[i];
      j = b + y[i];
      if (k - 1 >= 0 && s[k - 1][j] == 'S') {
        goto read;
      }
      for (k = 7; k >= 0; k--) {
        for (j = 0; j < 8; j++) {
          if (k - 1 >= 0 && s[k - 1][j] == 'S') {
            ya++;
            c[k][j] = 'S';
          } else {
            c[k][j] = '.';
          }
        }
      }
      c[a + x[i]][b + y[i]] = 'M';
      int r;
      if (ya == 0) {
        return 1;
      }
      r = dfs(c, a + x[i], b + y[i], mov++);
      if (r == 1) {
        return 1;
      }
      if (r == 2) {
        return 0;
      }
    read:;
    }
  }
  return 0;
}
int main() {
  char s[10][10];
  int i;
  for (i = 0; i < 8; i++) {
    scanf("%s", s[i]);
  }
  int r = dfs(s, 7, 0, 0);
  if (r == 1) {
    printf("WIN\n");
  } else {
    printf("LOSE\n");
  }
  return 0;
}
