#include <bits/stdc++.h>
using namespace std;
vector<vector<char>> global_map(8, vector<char>(8));
vector<vector<vector<bool>>> threeD_map(
    8, vector<vector<bool>>(8, vector<bool>(10, true)));
string directions = "SLUDWXYZR";
bool sol_found = false;
void getching() {
  for (int i = 0; i < 8; i++) {
    for (int j = 0; j < 8; j++) {
      cin >> global_map[i][j];
    }
  }
}
void setching() {
  for (int j = 0; j < 8; j++) {
    vector<int> statues;
    for (int i = 0; i < 8; i++) {
      if (global_map[i][j] == 'S') {
        statues.push_back(i);
      }
      for (int k = 0; k < statues.size(); k++) {
        threeD_map[i][j][i - statues[k]] = false;
      }
    }
  }
}
bool nafez(string operate, int curr_index, int i, int j, int curr_time) {
  if (curr_index == operate.size()) {
    return true;
  }
  if (operate[curr_index] == 'R' || operate[curr_index] == 'W' ||
      operate[curr_index] == 'Z') {
    j++;
  }
  if (operate[curr_index] == 'X' || operate[curr_index] == 'L' ||
      operate[curr_index] == 'Y') {
    j--;
  }
  if (operate[curr_index] == 'U' || operate[curr_index] == 'W' ||
      operate[curr_index] == 'X') {
    i--;
  }
  if (operate[curr_index] == 'Y' || operate[curr_index] == 'D' ||
      operate[curr_index] == 'Z') {
    i++;
  }
  if (i < 0 || j < 0 || i > 7 || j > 7 ||
      threeD_map[i][j][curr_time] == false) {
    return false;
  }
  curr_time++;
  curr_index++;
  if (i < 0 || j < 0 || i > 7 || j > 7 ||
      threeD_map[i][j][curr_time] == false) {
    return false;
  }
  return nafez(operate, curr_index, i, j, curr_time);
}
bool generate_movement(string curr) {
  if (nafez(curr, 0, 7, 0, 0) == false) {
    return false;
  } else {
    if (curr.size() == 8) {
      return true;
    }
  }
  bool found = false;
  for (int i = 0; i < directions.size(); i++) {
    found |= generate_movement(curr + directions[i]);
    if (found == true) {
      return true;
    }
  }
  return false;
}
int main() {
  getching();
  setching();
  if (generate_movement("")) {
    cout << "WIN" << endl;
  } else {
    cout << "LOSE" << endl;
  }
  return 0;
}
