#include<bits/stdc++.h>
#define N ((int)5e4 + 5)
#define MAXL ((ll)1e18 + 5)
#define MAX ((int)2e9 + 5)
#define fastio ios_base::sync_with_stdio(false) , cin.tie(0) , cout.tie(0)
#define endl "\n"
#define ll long long
using namespace std;
int main(){

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

    return 0;
}

#include <bits/stdc++.h>
using namespace std;


#define pb                push_back
#define ppb               pop_back
#define pf                push_front
#define ppf               pop_front
#define all(x)            (x).begin(),(x).end()
#define uniq(v)           (v).erase(unique(all(v)),(v).end())
#define sz(x)             (int)((x).size())
#define fr                first
#define sc                second
#define pii               pair<int,int>
#define rep(i,a,b)        for(int i=a;i<b;i++)
#define mem1(a)           memset(a,-1,sizeof(a))
#define mem0(a)           memset(a,0,sizeof(a))
#define ppc               __builtin_popcount
#define ppcll             __builtin_popcountll
#define endl              "\n"
#define vi                vector<int> 
#define ll                long long


void solve()
{
    //Code here
    char a,b,c;
    cin>>a>>b>>c;
    if(a==b&& b==c &&a==c)
        cout<<"Won"<<endl;
    else
        cout<<"Lost"<<endl;
}

int main()
{
    #ifndef ONLINE_JUDGE
    //for getting input from input.txt
    freopen("input.txt", "r", stdin);
    //for writing output to output.txt
    freopen("output.txt", "w", stdout);
    #endif
    ios_base::sync_with_stdio(0);
    cin.tie(NULL);
    cout.tie(NULL);
    
    ll T=1;
    // cin>>T;
    while(T--)
    {
        solve();
    }
    return 0;
}