#include <bits/stdc++.h>
using namespace std;
char board[8][8];
int statues[10][10][10];
bool dfs(int row, int column, int time) {
  if (time == 8) return true;
  if (statues[row][column][time]) return false;
  if (statues[row][column][time - 1]) return false;
  for (int dy = -1; dy <= 1; dy++)
    for (int dx = -1; dx <= 1; dx++) {
      if (row == 0 && dy == -1 || row == 7 && dy == 1) continue;
      if (column == 0 && dx == -1 || column == 7 && dx == 1) continue;
      int newrow = row + dy;
      int newcol = column + dx;
      if (dfs(newrow, newcol, time + 1)) return true;
    }
  return false;
}
int main() {
  for (int i = 0; i < 8; i++) gets(board[i]);
  for (int i = 0; i < 8; i++)
    for (int j = 0; j < 8; j++)
      if (board[i][j] == 'S')
        for (int k = 0; k < 8; k++) statues[i + k][j][k] = 1;
  if (dfs(7, 0, 0))
    printf("WIN\n");
  else
    printf("LOSE\n");
  return 0;
}
