#include <bits/stdc++.h>
using namespace std;
char grid[9][9];
int x[] = {0, 1, -1};
int y[] = {0, 1, -1};
vector<pair<int, int>> statues;
bool cheak(int r, int c, int moves) {
  for (auto it : statues) {
    if ((it.first + moves - 1 == r or it.first + moves == r) and it.second == c)
      return false;
  }
  return true;
}
void dfs(int r, int c, int moves) {
  if (r > 8 or r < 1 or c < 1 or c > 8 or !cheak(r, c, moves)) return;
  if (r == 1 and c == 8 or moves >= 7) {
    cout << "WIN";
    exit(0);
  }
  for (int i = 0; i < 3; i++) {
    for (int j = 0; j < 3; j++) {
      dfs(r + x[i], c + y[j], moves + 1);
    }
  }
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  ;
  for (int i = 1; i <= 8; i++) {
    for (int j = 1; j < 9; j++) {
      cin >> grid[i][j];
      if (grid[i][j] == 'S') statues.push_back({i, j});
    }
  }
  dfs(8, 1, 0);
  cout << "LOSE";
  return 0;
}
