#include <bits/stdc++.h>
using namespace std;
int main() {
  const int start = 1;
  const int limit = 8;
  vector<vector<int> > stat(10, vector<int>(10, -1));
  for (int i = start; i <= limit; i++) {
    for (int j = start; j <= limit; j++) {
      char input;
      cin >> input;
      if (input != 'S') stat[j][i] = 0;
      if (input == 'M') stat[j][i] = start;
    }
  }
  for (int i = start; i <= limit; i++) {
    for (int j = start; j <= limit; j++) {
      for (int k = start; k <= limit; k++) {
        if (stat[j][k] == i) {
          for (int l = j - 1; l <= j + 1; l++) {
            for (int m = k - 1; m <= k + 1; m++) {
              if (stat[l][m] > -1 && stat[l][m] != i) {
                stat[l][m] = i + 1;
              }
            }
          }
          stat[j][k] = i + 1;
        }
      }
    }
    for (int j = start; j <= limit; j++) {
      for (int k = limit; k >= start; k--) {
        if (stat[j][k] == -1) {
          stat[j][k] = 0;
          stat[j][k + 1] = -1;
        }
      }
    }
    int sum = 0;
    for (int j = start; j <= limit; j++) {
      for (int k = start; k <= limit; k++) {
        if (stat[j][k] == i + 1) {
          sum++;
        }
      }
    }
    if (sum == 0) {
      cout << "LOSE" << endl;
      return 0;
    }
  }
  cout << "WIN" << endl;
  return 0;
}
