#include <bits/stdc++.h>
int fg, statue[30][20][20];
void rec(int i, int j, int p) {
  if ((i == 1 && j == 8) || p > 7) {
    fg = 1;
    return;
  }
  if (statue[p][i][j - 1] == '.' && statue[p + 1][i][j - 1] != 'S')
    rec(i, j - 1, p + 1);
  if (statue[p][i - 1][j] == '.' && statue[p + 1][i - 1][j] != 'S')
    rec(i - 1, j, p + 1);
  if (statue[p][i][j + 1] == '.' && statue[p + 1][i][j + 1] != 'S')
    rec(i, j + 1, p + 1);
  if (statue[p][i + 1][j] == '.' && statue[p + 1][i + 1][j] != 'S')
    rec(i + 1, j, p + 1);
  if (statue[p][i - 1][j - 1] == '.' && statue[p + 1][i - 1][j - 1] != 'S')
    rec(i - 1, j - 1, p + 1);
  if (statue[p][i - 1][j + 1] == '.' && statue[p + 1][i - 1][j + 1] != 'S')
    rec(i - 1, j + 1, p + 1);
  if (statue[p][i + 1][j - 1] == '.' && statue[p + 1][i + 1][j - 1] != 'S')
    rec(i + 1, j - 1, p + 1);
  if (statue[p][i + 1][j + 1] == '.' && statue[p + 1][i + 1][j + 1] != 'S')
    rec(i + 1, j + 1, p + 1);
  if (p < 8 && statue[p][i][j] == '.' && statue[p + 1][i][j] != 'S')
    rec(i, j, p + 1);
  return;
}
int main() {
  int i, j, p, arr[20][20];
  for (p = 0; p <= 10; p++) {
    for (i = 0; i <= 9; i++) {
      for (j = 0; j <= 9; j++) statue[p][i][j] = '#';
    }
  }
  for (i = 0; i <= 9; i++) {
    for (j = 0; j <= 9; j++) arr[i][j] = '#';
  }
  for (i = 1; i <= 8; i++) {
    for (j = 1; j <= 8; j++) {
      scanf("%c", &arr[i][j]);
      if (arr[i][j] == 'A' || arr[i][j] == 'M') arr[i][j] = '.';
      for (p = 0; p <= 8; p++) statue[p][i][j] = arr[i][j];
    }
    getchar();
  }
  for (p = 1; p <= 9; p++) {
    for (i = 8; i >= 1; i--) {
      for (j = 1; j <= 8; j++) {
        statue[p][i][j] = '.';
        if (statue[p - 1][i - 1][j] == 'S') statue[p][i][j] = 'S';
      }
    }
  }
  fg = 0;
  rec(8, 1, 0);
  if (fg == 0)
    printf("LOSE\n");
  else
    printf("WIN\n");
  return 0;
}
