#include <bits/stdc++.h>
char cc[8][16];
int visited[8][8];
int qq[100000];
int ok(int x, int y) {
  return (x < 0 || cc[x][y] != 'S') &&
         (x - 1 < 0 || (!visited[x - 1][y] && cc[x - 1][y] != 'S'));
}
int main() {
  int i, h, q, vx, vy;
  for (i = 0; i < 8; i++) scanf("%s", cc[i]);
  h = 0, q = 0;
  qq[h + q++] = 7, qq[h + q++] = 0;
  while (q > 0) {
    int x = qq[h++];
    int y = qq[h++];
    q -= 2;
    if (x <= 0) {
      printf("WIN\n");
      return 0;
    }
    visited[x][y] = 1;
    for (vx = -1; vx <= 1; vx++)
      for (vy = -1; vy <= 1; vy++)
        if (x + vx < 8 && y + vy >= 0 && y + vy < 8 && ok(x + vx, y + vy))
          qq[h + q++] = x + vx - 1, qq[h + q++] = y + vy;
  }
  printf("LOSE\n");
  return 0;
}
