#include <iostream>
using namespace std;

int main() {
 char c1;
 char c2;
 char c3;
 cin >> c1;
 cin >> c2;
 cin >> c3;
 if ( c1 == c2 && c2 == c3 ) cout << "Won";
 else cout << "Lost";
	return 0;
}

#include <stdio.h>

constexpr unsigned char H[16] = {0, 1, 0, 3, 1, 1, 1, 1, 0, 1, 2, 2, 3, 1, 2, 3};

int main() {
  unsigned char n, k;
  scanf("%hhd %hhd", &n, &k);
  getchar_unlocked();
  unsigned char h[101], h2[101];
  for (unsigned char i = 0; i < n; i++) h[i] = getchar_unlocked() - 80;
  for (unsigned char i = 0; i < k; i++) {
    unsigned char *cur = (i & 1) ? h2 : h, *nxt = (i & 1) ? h : h2;
    for (unsigned char j = 0; j < n; j++) {
      nxt[j] = H[(cur[(j * 2) % n] * 4) + cur[((j * 2) + 1) % n]];
    }
  }
  putchar_unlocked(((k & 1) ? (*h2) : (*h)) + 80);
}
