#include <bits/stdc++.h>
using namespace std;
struct Pos {
  int i, j;
  Pos(int _i, int _j) : i(_i), j(_j) {}
};
vector<string> board(8);
int main() {
  for (int i = 0; i < 8; i++) cin >> board[i];
  board[0][7] = '.';
  for (int i = 0; i < 8; i++) {
    for (int j = 0; j < 8; j++) {
      if (board[i][j] == 'M') {
        if (i > 0 && board[i - 1][j] == '.') board[i - 1][j] = 'm';
        if (i < 7 && board[i + 1][j] == '.') board[i + 1][j] = 'm';
        if (j > 0 && board[i][j - 1] == '.') board[i][j - 1] = 'm';
        if (j < 7 && board[i][j + 1] == '.') board[i][j + 1] = 'm';
        if (i > 0 && j > 0 && board[i - 1][j - 1] == '.')
          board[i - 1][j - 1] = 'm';
        if (i > 0 && j < 7 && board[i - 1][j + 1] == '.')
          board[i - 1][j + 1] = 'm';
        if (i < 7 && j > 0 && board[i + 1][j - 1] == '.')
          board[i + 1][j - 1] = 'm';
        if (i < 7 && j < 7 && board[i + 1][j + 1] == '.')
          board[i + 1][j + 1] = 'm';
      }
    }
  }
  for (int i = 0; i < 8; i++)
    for (int j = 0; j < 8; j++)
      if (board[i][j] == 'm') board[i][j] = 'M';
  for (int k = 0; k < 9; k++) {
    for (int i = 7; i > 0; i--)
      for (int j = 0; j < 8; j++)
        if (board[i - 1][j] == 'S') {
          board[i - 1][j] = '.';
          board[i][j] = 'S';
        }
    for (int i = 0; i < 8; i++) {
      for (int j = 0; j < 8; j++) {
        if (board[i][j] == 'M') {
          if (i > 0 && board[i - 1][j] == '.') board[i - 1][j] = 'm';
          if (i < 7 && board[i + 1][j] == '.') board[i + 1][j] = 'm';
          if (j > 0 && board[i][j - 1] == '.') board[i][j - 1] = 'm';
          if (j < 7 && board[i][j + 1] == '.') board[i][j + 1] = 'm';
          if (i > 0 && j > 0 && board[i - 1][j - 1] == '.')
            board[i - 1][j - 1] = 'm';
          if (i > 0 && j < 7 && board[i - 1][j + 1] == '.')
            board[i - 1][j + 1] = 'm';
          if (i < 7 && j > 0 && board[i + 1][j - 1] == '.')
            board[i + 1][j - 1] = 'm';
          if (i < 7 && j < 7 && board[i + 1][j + 1] == '.')
            board[i + 1][j + 1] = 'm';
        }
      }
    }
    for (int i = 0; i < 8; i++)
      for (int j = 0; j < 8; j++)
        if (board[i][j] == 'm') board[i][j] = 'M';
  }
  for (int i = 0; i < 8; i++)
    for (int j = 0; j < 8; j++)
      if (board[i][j] == 'M') {
        cout << "WIN" << endl;
        return 0;
      }
  cout << "LOSE" << endl;
  return 0;
}
