#include<bits/stdc++.h>
typedef long long int ll ;
#define rep(i,k,n) for (i = k; i < n; i++)
using namespace std;
const unsigned int M = 1000000007;
const unsigned int n=100005;
/*bool sol(pair<ll,ll>a,pair<ll,ll>b)
{
    return (b.first>a.first);


}*/
/*
int64_t ceil_div(int64_t a, int64_t b) {
    return (a + b - 1) / b;

}*/


void fun()
{
    ll n;
    char a,b,c;
    cin>>a>>b>>c;
    if(a==b&&b==c)
    {
        cout<<"Won"<<endl;
    }
    else
    {
        cout<<"Lost"<<endl;
    }














}



int main()
{
//ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);
 long long int t;
t=1;


 //cin>>t;
 while(t--)
 {
    fun();

   //fflush(stdin);
 }
}

#include<bits/stdc++.h>
#define ll long long
using namespace std;
#define fast ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);


int main()
{
    fast
   

     string s; cin>>s;
     if(s[0]==s[1]&&s[1]==s[2])
        cout<<"Won";
     else
        cout<<"Lost";

    


    return 0;
}
