#include <bits/stdc++.h>
using namespace std;
char c[12][12][12];
int ans = 0;
void dfs(int i, int j, int t) {
  if (t == 8) {
    printf("WIN");
    exit(0);
  }
  if (c[i][j][t + 1] == '.' && t <= 8) {
    dfs(i, j, t + 1);
  }
  if (c[i][j + 1][t] != 'S' &&
      (c[i][j + 1][t + 1] == '.' || c[i][j + 1][t + 1] == 'A') && t <= 8) {
    dfs(i, j + 1, t + 1);
  }
  if (c[i][j - 1][t] != 'S' &&
      (c[i][j - 1][t + 1] == '.' || c[i][j - 1][t + 1] == 'A') && t <= 8) {
    dfs(i, j - 1, t + 1);
  }
  if (c[i + 1][j][t] != 'S' &&
      (c[i + 1][j][t + 1] == '.' || c[i + 1][j][t + 1] == 'A') && t <= 8) {
    dfs(i + 1, j, t + 1);
  }
  if (c[i - 1][j][t] != 'S' &&
      (c[i - 1][j][t + 1] == '.' || c[i - 1][j][t + 1] == 'A') && t <= 8) {
    dfs(i - 1, j, t + 1);
  }
  if (c[i + 1][j + 1][t] != 'S' &&
      (c[i + 1][j + 1][t + 1] == '.' || c[i + 1][j + 1][t + 1] == 'A') &&
      t <= 8) {
    dfs(i + 1, j + 1, t + 1);
  }
  if (c[i + 1][j - 1][t] != 'S' &&
      (c[i + 1][j - 1][t + 1] == '.' || c[i + 1][j - 1][t + 1] == 'A') &&
      t <= 8) {
    dfs(i + 1, j - 1, t + 1);
  }
  if (c[i - 1][j - 1][t] != 'S' &&
      (c[i - 1][j - 1][t + 1] == '.' || c[i - 1][j - 1][t + 1] == 'A') &&
      t <= 8) {
    dfs(i - 1, j - 1, t + 1);
  }
  if (c[i - 1][j + 1][t] != 'S' &&
      (c[i - 1][j + 1][t + 1] == '.' || c[i - 1][j + 1][t + 1] == 'A') &&
      t <= 8) {
    dfs(i - 1, j + 1, t + 1);
  }
  if (t == 1) {
    printf("LOSE");
    exit(0);
  }
}
int main() {
  for (int i = 8; i >= 1; i--)
    for (int j = 1; j <= 8; j++) cin >> c[i][j][1];
  for (int t = 2; t <= 8; t++)
    for (int i = 9 - t; i >= 1; i--)
      for (int j = 1; j <= 8; j++) c[i][j][t] = c[i + 1][j][t - 1];
  for (int t = 1; t <= 9; t++) {
    for (int j = 1; j <= 8; j++) {
      c[0][j][t] = 'S';
      c[10][j][t] = 'S';
    }
    for (int i = 8; i >= 1; i--) {
      c[i][9][t] = 'S';
      c[i][0][t] = 'S';
    }
  }
  dfs(1, 1, 1);
}
