#include <bits/stdc++.h>
using namespace std;
char a[15][15] = {0};
long f[15][15][15] = {0};
long dir[9][2] = {{0, 1},  {0, -1},  {1, 0},  {-1, 0}, {1, 1},
                  {-1, 1}, {-1, -1}, {1, -1}, {0, 0}};
void ff(long l, long x, long y) {
  long i;
  long step;
  long xx, yy;
  f[l][x][y] = 1;
  for (i = 0; i < 9; i++) {
    step = min(l + 1, (long)8);
    xx = x + dir[i][0];
    yy = y + dir[i][1];
    if (xx <= 8 && xx >= 1 && yy <= 8 && yy >= 1) {
      if (!f[step][xx][yy]) {
        if (xx - l >= 1)
          if (a[xx - l][yy] == 'S') continue;
        if (xx - l - 1 >= 1)
          if (a[xx - l - 1][yy] == 'S') continue;
        ff(step, xx, yy);
      }
    }
  }
}
int main() {
  for (long i = 1; i <= 8; i++) scanf("%s", a[i] + 1);
  ff(0, 8, 1);
  if (f[8][1][8])
    printf("WIN\n");
  else
    printf("LOSE\n");
  return 0;
}
