#include <bits/stdc++.h>
using namespace std;
int dx[] = {0, 0, 1, -1, 1, -1, -1, 1}, dy[] = {1, -1, 0, 0, 1, -1, 1, -1};
char grid[10][10];
bool valid(int x, int y) {
  return x >= 0 && y >= 0 && x < 8 && y < 8 && grid[x][y] == '.' ||
         grid[x][y] == 'A';
}
bool graph() {
  int marias = 1;
  while (marias) {
    bool vis[10][10] = {0};
    for (int i = 0; i < 8; ++i)
      for (int j = 0; j < 8; ++j) {
        if (grid[i][j] == 'M' && !vis[i][j]) {
          vis[i][j] = 1;
          for (int k = 0; k < 8; ++k) {
            int nx = i + dx[k], ny = j + dy[k];
            if (valid(nx, ny) && !vis[nx][ny]) {
              vis[nx][ny] = 1;
              grid[nx][ny] = 'M';
              marias++;
            }
          }
        }
      }
    for (int i = 7; i >= 0; --i)
      for (int j = 0; j < 8; ++j) {
        if (grid[i][j] == 'S') {
          if (grid[i + 1][j] == 'M') marias--;
          grid[i + 1][j] = 'S';
          grid[i][j] = '.';
        }
      }
    if (grid[0][7] == 'M') return 1;
  }
  return grid[0][7] == 'M';
}
int main() {
  for (int i = 0; i < 8; ++i) cin >> grid[i];
  cout << (graph() ? "WIN" : "LOSE");
}
