#include<bits/stdc++.h>
using namespace std;
#define ll long long int
#define ld long double
#define pi (3.141592653589)
#define pb push_back
#define mp make_pair
#define INF 1000000000
#define MOD 1000000007
#define vll vector<ll>
#define vpll vector<pair<ll,ll> >
#define pll pair<ll , ll>
#define ff first
#define ss second



int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
ll t = 1;
//cin>>t;
while(t--){
  string s;
  cin >> s;
  if(s[0] == s[1] && s[1] == s[2]) cout << "Won\n";
  else cout << "Lost\n"; 
}
return 0;
}

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

typedef long long int ll;

int main () {
    ios_base::sync_with_stdio(false);
    cin.tie(0);cout.tie(0);
	
	int n;
	cin >> n;
	
	if (n == 0) {
		cout << "Yes\n";
		return 0;
	}
	
	vector < int > digits;
	while (n > 0) {
		digits.push_back(n % 10);
		n /= 10;
	}
	
	int i = 0, j = (int)digits.size() - 1;
	while(i < (int)digits.size() && digits[i] == 0) i++;
	while(j >= 0 && digits[j] == 0) j--;
	
	bool ok = true;
	while (i <= j) {
		if (digits[i] != digits[j]) {
			ok = false;
			break;
		}
		i++;
		j--;
	}
	
	cout << (ok ? "Yes" : "No") << '\n';
}
