#include <bits/stdc++.h>
using namespace std;
int x[9] = {0, 0, 1, 1, 1, -1, -1, -1, 0};
int y[9] = {1, -1, 1, 0, -1, 1, 0, -1, 0};
char f[10][10];
char g[10][10];
char h[10][10];
int cnt;
bool ins(int a, int b) {
  return (a >= 0 && b >= 0 && a < 8 && b < 8 && f[a][b] != 'S');
}
int main() {
  for (int i = 7; i >= 0; i--) scanf("%s", f[i]);
  while (cnt < 20) {
    cnt++;
    for (int i = 0; i < 8; i++) memset(g[i], 0, sizeof(g[i]));
    for (int i = 0; i < 8; i++)
      for (int j = 0; j < 8; j++) {
        if (f[i][j] == 'M')
          for (int k = 0; k <= 8; k++) {
            if (ins(i + x[k], j + y[k])) g[i + x[k]][j + y[k]] = 'M';
          }
      }
    for (int i = 7; i >= 0; i--) {
      for (int j = 0; j < 8; j++)
        if (f[i][j] == 'S' && i > 0) g[i - 1][j] = 'S';
    }
    for (int i = 0; i < 8; i++)
      for (int j = 0; j < 8; j++) {
        if (g[i][j] == 0)
          f[i][j] = '.';
        else
          f[i][j] = g[i][j];
      }
  }
  if (f[7][7] == 'M')
    printf("WIN\n");
  else
    printf("LOSE\n");
  return 0;
}
