#include <bits/stdc++.h>
using namespace std;
int a[10][10];
int dfs(int c, int x, int y) {
  if (x == 0 || y == 0 || x == 9 || y == 9) return 0;
  if (c >= 8) return 1;
  if (x + c < 9)
    if (a[x + c][y]) return 0;
  if (c != 0 && x + c < 10)
    if (a[x + c - 1][y]) return 0;
  int ok = 0;
  if (dfs(c + 1, x - 1, y)) ok = 1;
  if (dfs(c + 1, x - 1, y - 1)) ok = 1;
  if (dfs(c + 1, x - 1, y + 1)) ok = 1;
  if (dfs(c + 1, x, y - 1)) ok = 1;
  if (dfs(c + 1, x, y + 1)) ok = 1;
  if (dfs(c + 1, x + 1, y - 1)) ok = 1;
  if (dfs(c + 1, x + 1, y + 1)) ok = 1;
  if (dfs(c + 1, x + 1, y)) ok = 1;
  if (dfs(c + 1, x, y)) ok = 1;
  if (ok)
    return 1;
  else
    return 0;
}
int main() {
  memset(a, 0, sizeof(a));
  for (int i = 0; i < 10; i++) {
    a[i][0] = 1;
    a[0][i] = 1;
    a[i][9] = 1;
    a[9][i] = 1;
  }
  for (int i = 0; i < 8; i++) {
    string s;
    cin >> s;
    for (int j = 0; j < 8; j++)
      if (s[j] == 'S') a[8 - i][j + 1] = 1;
  }
  if (dfs(0, 1, 1))
    printf("WIN\n");
  else
    printf("LOSE\n");
  return 0;
}
