#include <algorithm>
#include <array>
#include <bitset>
#include <cassert>
#include <limits>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <functional>
#include <iostream>
#include <map>
#include <memory>
#include <numeric>
#include <queue>
#include <random>
#include <set>
#include <tuple>
#include <stack>
#include <string>
#include <unordered_set>
#include <unordered_map>
#include <vector>
#include <type_traits>
/* This header mainly deals while taking input
 */


#include <cstdint>


 // namespace Rangers


#include <ios>

#include <istream>


#include <utility>


namespace Inputs {


inline std::string readString1(std::istream &in) {
  // string input when first taken
  std::string s;
  std::getline(in, s);
  return s;
}


} // namespace Inputs


#include <sstream>
#include <iomanip>
using namespace Inputs;
using namespace std;
// Powered by caide (code generator, tester, and library code inliner)
// @author Dj


class Solution {
public:
  void solve(std::istream &in, std::ostream &out) {
    string s = readString1(in);
    out << (s[0] == s[1] && s[1] == s[2] && s[0] == s[2] ? "Won" : "Lost");
  }
};

void solve(std::istream& in, std::ostream& out)
{
    out << std::setprecision(12);
    Solution solution;
    solution.solve(in, out);
}


#include <fstream>


int main() {
    
    ios_base::sync_with_stdio(false);
    cin.tie(0);


    istream& in = cin;


    ostream& out = cout;

    solve(in, out);
    return 0;
}



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

#define endl         "\n"
#define ll           long long
#define PI           acos(-1.0)
#define GCD(a,b)     __gcd(a , b)
#define LCM(a,b)     ((a/__gcd(a,b))*b)
#define READ(f)      freopen(f,"r",stdin)
#define WRITE(f)     freopen(f,"w",stdout)
#define test         cout<<"\n*************\n"
#define mem(arr,val) memset(arr,val,sizeof(arr))
#define precise(c)   fixed(cout);cout<<setprecision(c)
#define valid(x,y)   (x>=1 && x<=row && y>=1 && y<=column)
#define fast         ios_base :: sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL)


int main(){

    string str;
    cin>>str;

    if(str[0]==str[1] && str[1]==str[2]){
        cout<<"Won";
    } else{
        cout<<"Lost";
    }


        return 0;
}