#include <bits/stdc++.h>
const int dx[] = {0, -1, 0, 1, -1, 0, 1, -1, 0, 1};
const int dy[] = {0, 0, 0, 0, -1, -1, -1, 1, 1, 1};
int vis[15][15][15];
char g[15][15];
int main() {
  for (int i = 1; i <= 8; i++) scanf("%s", g[i] + 1);
  memset(vis, 0, sizeof(vis));
  vis[0][8][1] = 1;
  for (int k = 1; k <= 9; k++) {
    for (int i = 1; i <= 8; i++) {
      for (int j = 1; j <= 8; j++) {
        if (g[i][j] == 'S' && i + k - 1 <= 8) vis[k][i + k - 1][j] = 2;
      }
    }
    for (int i = 1; i <= 8; i++) {
      for (int j = 1; j <= 8; j++) {
        if (vis[k - 1][i][j] != 1) continue;
        for (int l = 1; l <= 9; l++) {
          int x = i + dx[l];
          int y = j + dy[l];
          if (x >= 1 && x <= 8 && y >= 1 && y <= 8 && vis[k][x][y] != 2)
            vis[k][x][y] = 1;
        }
      }
    }
    for (int i = 1; i <= 8; i++) {
      for (int j = 1; j <= 8; j++) {
        if (g[i][j] == 'S' && i + k <= 8) vis[k][i + k][j] = 2;
      }
    }
  }
  bool flag = 0;
  for (int i = 1; i <= 8; i++) {
    for (int j = 1; j <= 8; j++)
      if (vis[9][i][j] == 1) flag = 1;
  }
  printf("%s\n", flag ? "WIN" : "LOSE");
  return 0;
}
