#include <iostream>
#include <string>

using namespace std;

int main() {
    string c;
    cin >> c;
    cout << (c[0] == c[1] && c[1] == c[2] ? "Won" : "Lost") << endl;
}

#include <bits/stdc++.h>
using namespace std;
 
int main() {
unsigned long N,M,a,b,answer;
int count = 1;
answer = 0;
cin >> N;
M = N;
while (M>9){
 M = M / 10;  
 count++;
}
  if (count % 2 != 0)
{
 if (count == 1){
cout << 0 << endl;
  return (0);}
  if (count == 3){
cout << 9 << endl;
  return (0);}
  if (count == 5){
cout << 99 << endl;
  return (0);} 
  if (count == 7){
cout << 999 << endl;
  return (0);}    
  if (count == 9){
cout << 9999 << endl;
  return (0);} 
  if (count == 11){
cout << 99999 << endl;
  return (0);} 
}
int x = pow(10, count/2);
a = N / x;
b = N % x;
if (a > b)
  answer = a-1;
else
  answer = a;
cout << answer << endl;
  return (0);
}