#include <bits/stdc++.h>
using namespace std;
enum State { RUN, WIN, LOSE } state;
;
void output(int b[10][10][2]);
int main() {
  int a[8][8], b[10][10][2] = {-1};
  for (int i = 0; i < 10; ++i)
    for (int j = 0; j < 10; ++j)
      for (int k = 0; k < 2; ++k) b[i][j][k] = -1;
  int length = 0, x = 1, y = 1, shag = 0;
  int stat[64][2];
  for (int i = 0; i < 8; i++)
    for (int j = 0; j < 8; j++) {
      char c;
      cin >> c;
      b[i + 1][j + 1][0] = c == 'S' ? 90 : -1;
      if (c == 'S') {
        stat[length][0] = i + 1;
        stat[length++][1] = j + 1;
      }
    }
  for (int i = 0; i < 10; i++) {
    b[i][0][0] = 90;
    b[i][9][0] = 90;
    b[0][i][0] = 90;
    b[9][i][0] = 90;
    b[i][0][1] = 90;
    b[i][9][1] = 90;
    b[0][i][1] = 90;
    b[9][i][1] = 90;
  }
  state = RUN;
  b[8][1][0] = 0;
  while (state == RUN) {
    bool fl = false;
    for (int i = 1; i < 9; i++)
      for (int j = 1; j < 9; j++) {
        if ((b[i][j][shag % 2] == shag)) {
          fl = true;
          for (int k = -1; k < 2; k++)
            for (int l = -1; l < 2; l++) {
              if (b[i + k][j + l][shag % 2] <= shag)
                b[i + k][j + l][(shag + 1) % 2] = shag + 1;
            }
        }
      }
    if (!fl) state = LOSE;
    for (int i = 0; i < length; i++) {
      if (stat[i][0] < 8) {
        b[stat[i][0]][stat[i][1]][shag % 2] = -1;
        b[++stat[i][0]][stat[i][1]][(shag + 1) % 2] = 90;
      }
    }
    shag++;
    if ((b[1][8][0] != -1) || (b[1][8][1] != -1)) state = WIN;
  }
  if (state == WIN)
    cout << "WIN";
  else
    cout << "LOSE";
  return 0;
}
void output(int b[10][10][2]) {
  for (int i = 0; i < 10; ++i) {
    for (int j = 0; j < 10; ++j) {
      cout.width(3);
      cout << b[i][j][0];
    }
    cout << "   ";
    for (int j = 0; j < 10; ++j) {
      cout.width(3);
      cout << b[i][j][1];
    }
    cout << endl;
  }
}
