#include <bits/stdc++.h>
using namespace std;
int mi[9] = {0, -1, -1, -1, 0, 0, +1, +1, +1};
int mj[9] = {0, -1, 0, +1, -1, +1, -1, 0, +1};
int main() {
  string s[10];
  for (int i = 1; i <= 8; i++) cin >> s[i], s[i] = "#" + s[i] + "#";
  s[1][8] = '.';
  s[8][1] = '.';
  s[0] = string(10, '#');
  s[9] = string(10, '#');
  bool can[2][10][10] = {};
  int x = 0;
  can[x][8][1] = true;
  while (can[x][1][8] == false) {
    bool ok = false;
    for (int i = 1; i <= 8; i++) {
      for (int j = 1; j <= 8; j++) {
        if (can[x][i][j]) {
          for (int k = 0; k < 9; k++) {
            int ii = i + mi[k], jj = j + mj[k];
            if (ii > 0 && s[ii][jj] == '.' && s[ii - 1][jj] != 'S') {
              can[x ^ 1][ii][jj] = true;
              ok = true;
            }
          }
        }
      }
    }
    if (ok == false) {
      cout << "LOSE";
      return 0;
    }
    for (int i = 8; i >= 1; i--)
      for (int j = 1; j <= 8; j++) {
        if (s[i][j] == 'S') {
          if (i < 8) s[i + 1][j] = 'S';
          s[i][j] = '.';
        }
      }
    for (int i = 1; i <= 8; i++) {
      for (int j = 1; j <= 8; j++)
        can[x][i][j] = can[x ^ 1][i][j], can[x ^ 1][i][j] = false;
    }
  }
  cout << "WIN";
  return 0;
}
