#include <bits/stdc++.h>
using namespace std;
vector<string> posn(8);
int ans[8][8][8];
int movex[9] = {-1, -1, -1, 0, 1, 1, 1, -1, 0};
int movey[9] = {-1, 0, 1, 1, 1, 0, -1, -1, 0};
int dp(int x, int y, int t) {
  if (t > 7) return 1;
  if (ans[x][y][t] != -1) return ans[x][y][t];
  for (int i = 0; i < 9; i++) {
    int tx, ty;
    tx = x + movex[i];
    ty = y + movey[i];
    if (tx >= 0 && tx < 8 && ty >= 0 && ty < 8) {
      if (tx - t - 1 >= 0)
        if (posn[tx - t - 1][ty] == 'S') continue;
      if (tx - t >= 0)
        if (posn[tx - t][ty] == 'S') continue;
      if (dp(tx, ty, t + 1)) {
        return ans[x][y][t] = 1;
      }
    }
  }
  return ans[x][y][t] = 0;
}
int main() {
  for (int i = 0; i < 8; i++) {
    cin >> posn[i];
    for (int j = 0; j < 8; j++) {
      for (int k = 0; k < 8; k++) ans[i][j][k] = -1;
    }
  }
  if (dp(7, 0, 0))
    cout << "WIN";
  else
    cout << "LOSE";
  return 0;
}
