#include <bits/stdc++.h>
using namespace std;
string s[10];
struct Data {
  int x, y, times;
};
bool graph[10][8][8];
void init() {
  for (int i = 1; i <= 9; ++i) {
    for (int j = 0; j < 8; ++j) graph[i][0][j] = true;
    for (int j = 1; j < 8; ++j)
      for (int k = 0; k < 8; ++k) {
        graph[i][j][k] = graph[i - 1][j - 1][k];
      }
  }
}
bool bfs(Data x) {
  queue<Data> q;
  q.push(x);
  while (!q.empty()) {
    Data now = q.front();
    q.pop();
    if (now.x < 0 || now.y < 0 || now.x > 7 || now.y > 7) continue;
    if (!graph[now.times][now.x][now.y]) continue;
    if (now.times >= 8) return true;
    Data temp;
    temp.times = now.times + 1;
    temp.x = now.x;
    temp.y = now.y;
    q.push(temp);
    if (now.x > 0 && graph[now.times][now.x - 1][now.y]) {
      temp.x = now.x - 1;
      temp.y = now.y;
      q.push(temp);
    }
    if (now.x < 7 && graph[now.times][now.x + 1][now.y]) {
      temp.x = now.x + 1;
      temp.y = now.y;
      q.push(temp);
    }
    if (now.y < 7 && graph[now.times][now.x][now.y + 1]) {
      temp.x = now.x;
      temp.y = now.y + 1;
      q.push(temp);
    }
    if (now.y > 0 && graph[now.times][now.x][now.y - 1]) {
      temp.x = now.x;
      temp.y = now.y - 1;
      q.push(temp);
    }
    if (now.x < 7 && now.y > 0 && graph[now.times][now.x + 1][now.y - 1]) {
      temp.x = now.x + 1;
      temp.y = now.y - 1;
      q.push(temp);
    }
    if (now.x < 7 && now.y < 7 && graph[now.times][now.x + 1][now.y + 1]) {
      temp.x = now.x + 1;
      temp.y = now.y + 1;
      q.push(temp);
    }
    if (now.x > 0 && now.y > 0 && graph[now.times][now.x - 1][now.y - 1]) {
      temp.x = now.x - 1;
      temp.y = now.y - 1;
      q.push(temp);
    }
    if (now.x > 0 && now.y < 7 && graph[now.times][now.x - 1][now.y + 1]) {
      temp.x = now.x - 1;
      temp.y = now.y + 1;
      q.push(temp);
    }
  }
  return false;
}
int main() {
  for (int i = 0; i < 8; ++i) cin >> s[i];
  Data temp;
  for (int i = 0; i < 8; ++i)
    for (int j = 0; j < 8; ++j) {
      if (s[i][j] == 'S')
        graph[0][i][j] = false;
      else
        graph[0][i][j] = true;
    }
  init();
  temp.x = 7;
  temp.y = 0;
  temp.times = 0;
  if (bfs(temp))
    cout << "WIN" << endl;
  else
    cout << "LOSE" << endl;
  return 0;
}
