#include <cstdio>

int main() {
  char a = getchar(), b = getchar(), c = getchar();
  if(a == b && a == c) puts("Won");
  else puts("Lost");
  return 0;
}
#include <iostream>
#include <cmath>
#include <vector>
#include <map>
#include <stack>
#include <queue>
#include <set>
#include <algorithm>
#include <iomanip>
#include <string.h>

#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define REP(i,n)  FOR(i,0,n)
#define ALL(a)  (a).begin(),(a).end()

typedef long long lint;

using namespace std;

int main(){
  char c[3];
  REP(i,3)cin>>c[i];
  sort(c,c+3);
  if(c[0]==c[2])cout<<"Won"<<endl;
  else cout<<"Lost"<<endl;
  return 0;
}
