#include <bits/stdc++.h>
using namespace std;
const long long int mod = 1000000000 + 7;
const long long int N = 1000000 + 6;
char arr[9][9];
bool vis[9][9];
void maria() {
  std::vector<pair<int, int> > v;
  for (int i = 1; i <= 8; i++) {
    for (int j = 1; j <= 8; j++) {
      if (vis[i][j]) {
        v.push_back({i, j});
      }
    }
  }
  for (int ii = 0; ii < v.size(); ii++) {
    int i = v[ii].first;
    int j = v[ii].second;
    if (j + 1 <= 8 and arr[i][j + 1] != 'S') vis[i][j + 1] = true;
    if (j - 1 >= 1 and arr[i][j - 1] != 'S') vis[i][j - 1] = true;
    if (i + 1 <= 8 and arr[i + 1][j] != 'S') vis[i + 1][j] = true;
    if (i - 1 >= 1 and arr[i - 1][j] != 'S') vis[i - 1][j] = true;
    if (i + 1 <= 8 and j + 1 <= 8 and arr[i + 1][j + 1] != 'S')
      vis[i + 1][j + 1] = true;
    if (i - 1 >= 1 and j - 1 >= 1 and arr[i - 1][j - 1] != 'S')
      vis[i - 1][j - 1] = true;
    if (i + 1 <= 8 and j - 1 >= 1 and arr[i + 1][j - 1] != 'S')
      vis[i + 1][j - 1] = true;
    if (i - 1 >= 1 and j + 1 <= 8 and arr[i - 1][j + 1] != 'S')
      vis[i - 1][j + 1] = true;
  }
}
void statues() {
  std::vector<pair<int, int> > v;
  for (int i = 1; i <= 8; i++) {
    for (int j = 1; j <= 8; j++) {
      if (arr[i][j] == 'S') v.push_back({i, j});
    }
  }
  int x = v.size();
  x = x - 1;
  for (int ii = x; ii >= 0; ii--) {
    int i = v[ii].first;
    int j = v[ii].second;
    if (i + 1 <= 8) {
      arr[i + 1][j] = 'S';
      arr[i][j] = '.';
      if (vis[i + 1][j]) vis[i + 1][j] = false;
    }
  }
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  for (int i = 1; i <= 8; i++)
    for (int j = 1; j <= 8; j++) cin >> arr[i][j];
  memset(vis, false, sizeof(vis));
  vis[8][1] = true;
  for (int i = 1; i <= 8; i++) {
    maria();
    statues();
  }
  bool bo = false;
  for (int i = 1; i <= 8; i++) {
    for (int j = 1; j <= 8; j++) {
      if (vis[i][j]) {
        bo = true;
        break;
      }
    }
    if (bo) break;
  }
  if (bo)
    cout << "WIN";
  else
    cout << "LOSE";
}
