#include<iostream>
#include<string>
using namespace std;

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

using namespace std;

#define all(x) x.begin(), x.end()
#define pb push_back
#define mp make_pair
#define sz(x) (int)x.size()
#define f first
#define s second
#define bug cout << "ok\n";
#define file(s) freopen(s".in","r",stdin); freopen(s".out","w",stdout);
#define speed ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
#define int long long

const long double pi = 3.14159265358979323846264;
const long long maxn = 2e5 + 1, mod = 1e9 + 7, inf = 3e18;



void solve(){
	char c1, c2, c3;
	cin >> c1 >> c2 >> c3;
	if(c1 == c2 && c2 == c3)cout << "Won";
	else cout << "Lost";
}

main(){
    //file("");
    speed;
	int qq = 1;
	//cin >> qq;
while(qq--)solve();
    return 0;
}
