#include <bits/stdc++.h>
using namespace std;
const int dsize = 8;
bool p[dsize + 1][dsize][dsize];
string board[dsize];
char item(int x, int y) {
  if (x < 0) return '.';
  return board[x][y];
}
bool canmove(int k, int ni, int nj) {
  if (ni < 0 || nj < 0) return false;
  if (ni >= dsize || nj >= dsize) return false;
  return (item(ni - k, nj) != 'S' && item(ni - k - 1, nj) != 'S');
}
int main() {
  memset(p, false, sizeof(p));
  for (int i = 0; i < dsize; ++i) getline(cin, board[i]);
  p[0][dsize - 1][0] = true;
  for (int k = 0; k < dsize; ++k)
    for (int i = 0; i < dsize; ++i)
      for (int j = 0; j < dsize; ++j) {
        if (!p[k][i][j]) continue;
        for (int ii = -1; ii <= 1; ++ii)
          for (int jj = -1; jj <= 1; ++jj)
            if (canmove(k, i + ii, j + jj)) p[k + 1][i + ii][j + jj] = true;
      }
  bool canbe = false;
  for (int i = 0; i < dsize; ++i)
    for (int j = 0; j < dsize; ++j)
      if (p[dsize][i][j]) canbe = true;
  cout << (canbe ? "WIN" : "LOSE") << endl;
  return 0;
}
