#include <bits/stdc++.h>
using namespace std;
class point {
 public:
  int id, val;
};
bool operator<(const point &a, const point &b) {
  if (a.val < b.val) return true;
  return false;
}
const int dx[9] = {0, 0, -1, -1, -1, 0, 1, 1, 1};
const int dy[9] = {0, -1, -1, 0, 1, 1, 1, 0, -1};
string s[9];
int i, j;
int dp[9][9][101];
bool fail(int i, int j, int k) {
  int x, y;
  for (x = 0; x < 8; x++)
    for (y = 0; y < 8; y++)
      if (s[x][y] == 'S') {
        if ((x + k == i) && (y == j)) return 1;
      }
  return 0;
}
int rec(int i, int j, int k) {
  if ((i == 0) && (j == 7)) return 1;
  if (fail(i, j, k)) return 0;
  if (k > 100) return 0;
  if (dp[i][j][k] != -1) return dp[i][j][k];
  int ans = 0;
  ans = rec(i, j, k + 1);
  int t;
  for (t = 1; t <= 8; t++) {
    int x = i + dx[t];
    int y = j + dy[t];
    if ((x >= 0) && (x < 8) && (y >= 0) && (y < 8) && (fail(x, y, k) == 0)) {
      ans = max(ans, rec(x, y, k + 1));
    }
  }
  dp[i][j][k] = ans;
  return ans;
}
int main() {
  for (i = 0; i < 8; i++) cin >> s[i];
  memset(dp, -1, sizeof(dp));
  if (rec(7, 0, 0) == 1)
    cout << "WIN";
  else
    cout << "LOSE";
  return 0;
}
