#include <bits/stdc++.h>
using namespace std;
const int inf = 1e9;
const int maxn = 3e5 + 10;
const int MOD = 1e9 + 7;
bool visted[maxn];
vector<int> adj[maxn];
string s[9];
bool a[64][8][8];
void change() {
  for (int i = 7; i >= 1; i--) s[i] = s[i - 1];
  s[0] = string(8, '.');
}
int main() {
  int f;
  for (int i = 0; i < 8; i++) {
    cin >> s[i];
  }
  a[0][7][0] = 1;
  for (int k = 0; k < 50; k++) {
    for (int i = 0; i < 8; i++) {
      for (int j = 0; j < 8; j++) {
        for (int z = -1; z <= 1; z++) {
          for (int l = -1; l <= 1; l++) {
            int nx = i + z, ny = j + l;
            if (0 <= nx && nx < 8 && 0 <= ny && ny < 8) {
              if (a[k][i][j] && s[nx][ny] != 'S' &&
                  (!nx || s[nx - 1][ny] != 'S'))
                a[k + 1][nx][ny] = 1;
            }
          }
        }
      }
    }
    if (a[k][0][7] == 1) {
      cout << "WIN" << endl;
      return 0;
    }
    change();
  }
  cout << "LOSE" << endl;
  return 0;
}
