#include <iostream>
#include <bits/stdc++.h>
#include <cmath>
#include <string>

#define REP(i,a,b) for(int i=a; i<b; i++)
#define REP1(i,a,b) for(int i=a; i<=b; i++)

#define F first
#define S second
#define PB push_back
#define MP make_pair

typedef long long ll;

using namespace std;

int main()
{
    //this code makes input and output more efficient:
    ios::sync_with_stdio(0);
    cin.tie(0);

	char s;
  	set<char>se;
    REP1(i,01,3)
    {
      cin >> s;
      se.insert(s);
    }
  	if (se.size()==1) cout << "Won";
  	else
        cout << "Lost";


    return 0;
}

#include <bits/stdc++.h>
using namespace std;
int main(){
  string s;
  cin >> s;
  if(s[0] == s[1] && s[1] == s[2]) cout << "Won" << endl;
  else cout << "Lost" << endl;
}