#include <bits/stdc++.h>
using namespace std;
int dx[] = {-1, 1, 0, 0, -1, -1, 1, 1};
int dy[] = {0, 0, -1, 1, -1, 1, -1, 1};
int T[16][16];
string DFS(char B[][16], int x, int y) {
  if (B[y][x] == 'S') return "LOSE";
  int tx, ty;
  char BT[16][16];
  for (int i = 0; i < (16); ++i)
    for (int j = 0; j < (16); ++j) {
      BT[i][j] = B[i][j];
    }
  for (int i = 8; i > 0; --i) {
    for (int j = 1; j <= (8); ++j) {
      if (BT[i][j] == 'S') {
        BT[i][j] = '.';
        BT[i + 1][j] = 'S';
      }
    }
  }
  string r;
  for (int i = 0; i < (8); ++i) {
    tx = x + dx[i];
    ty = y + dy[i];
    if (ty == 1 && tx == 8) return "WIN";
    if (B[ty][tx] == 'S') continue;
    if (T[ty][tx] == 1) continue;
    T[ty][tx] = 1;
    r = DFS(BT, tx, ty);
    if (r == "WIN") return r;
    T[ty][tx] = 0;
  }
  return DFS(BT, x, y);
}
int main() {
  char B[16][16];
  for (int i = 1; i <= (8); ++i)
    for (int j = 1; j <= (8); ++j) cin >> B[i][j];
  for (int i = 0; i < (9); ++i) {
    B[i][0] = 'S';
    B[i][9] = 'S';
    B[0][i] = 'S';
    B[9][i] = 'S';
  }
  cout << (DFS(B, 1, 8)) << endl;
  return 0;
}
