#include <bits/stdc++.h>
using namespace std;
#pragma comment(linker, "/STACK:1000000000")
static char s[10][10];
static int m1[10][10][30];
bool chk(int n, int m, int t) {
  if (n - t + 1 >= 0 && s[n - t + 1][m] == 'S') return 0;
  if (n >= t && s[n - t][m] == 'S') return 0;
  if (n > 0 && m > 0 && m1[n - 1][m - 1][t - 1]) return 1;
  if (n > 0 && m1[n - 1][m][t - 1]) return 1;
  if (m > 0 && m1[n][m - 1][t - 1]) return 1;
  if (n > 0 && m1[n - 1][m + 1][t - 1]) return 1;
  if (m > 0 && m1[n + 1][m - 1][t - 1]) return 1;
  if (m1[n][m][t - 1] || m1[n + 1][m][t - 1] || m1[n][m + 1][t - 1] ||
      m1[n + 1][m + 1][t - 1])
    return 1;
  return 0;
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  for (int i = 0; i < 8; ++i) cin >> s[i];
  m1[7][0][0] = 1;
  for (int i = 1; i <= 29; ++i)
    for (int j = 0; j < 8; ++j)
      for (int k = 0; k < 8; ++k)
        if (chk(j, k, i)) m1[j][k][i] = 1;
  if (m1[0][7][29]) {
    cout << "WIN\n";
  } else
    cout << "LOSE\n";
  return 0;
}
