#include <bits/stdc++.h>
using namespace std;
vector<vector<char> > mat(8, vector<char>(8));
bool valid(int r, int c, const int move) {
  if (r < 0 || r >= 8 || c < 0 || c >= 8) return false;
  r -= (move - 1);
  if (r >= 0 && r < 8 && mat[r][c] == 'S') return false;
  --r;
  if (r >= 0 && r < 8 && mat[r][c] == 'S') return false;
  return true;
}
int dr[8] = {-1, -1, -1, 0, 0, 1, 1, 1};
int dc[8] = {-1, 0, 1, -1, 1, -1, 0, 1};
bool dfs(const int r, const int c, const int move) {
  if (move > 100) return false;
  if (!valid(r, c, move)) return false;
  if (mat[r][c] == 'A') return true;
  if (dfs(r, c, move + 1)) return true;
  if (mat[r][c] == 'X') return false;
  mat[r][c] = 'X';
  for (int d = 0; d < 8; ++d) {
    if (dfs(r + dr[d], c + dc[d], move + 1)) return true;
  }
  mat[r][c] = '.';
  return false;
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  for (int i = 0; i < 8; ++i) {
    for (int j = 0; j < 8; ++j) {
      cin >> mat[i][j];
    }
  }
  cout << (dfs(7, 0, 0) ? "WIN\n" : "LOSE\n");
  return 0;
}
