#include <bits/stdc++.h>
using namespace std;
int n = 8;
bool in(int x, int y) { return x >= 0 && y >= 0 && x < n && y < n; }
int main() {
  int x[] = {1, -1, 0, 0, 1, 1, -1, -1, 0};
  int y[] = {0, 0, 1, -1, 1, -1, 1, -1, 0};
  vector<string> vs(n);
  for (int i = 0; i < n; ++i) cin >> vs[i];
  vector<vector<vector<int> > > was(30,
                                    vector<vector<int> >(8, vector<int>(8)));
  was[0][n - 1][0] = 1;
  for (int t = 0; t + 1 < was.size(); ++t)
    for (int i = 0; i < n; ++i)
      for (int j = 0; j < n; ++j)
        if (was[t][i][j]) {
          if (i == 0 && j == n - 1) {
            cout << "WIN\n";
            return 0;
          }
          if (i < t || vs[i - t][j] != 'S') {
            for (int it = 0; it < 9; ++it)
              if (in(i + x[it], j + y[it]) &&
                  (i + x[it] < t || vs[i + x[it] - t][j + y[it]] != 'S')) {
                was[t + 1][i + x[it]][j + y[it]] = 1;
              }
          }
        }
  cout << "LOSE\n";
  return 0;
}
