#include <iostream>
using namespace std;

int main() {
	char a, b, c;
  cin>>a>>b>>c;
  if (a == b && b==c){
    cout<<"Won";
 }
 else{
  cout<<"Lost";
 }
 return 0;
}
#include <bits/stdc++.h>

using namespace std;

int main(){
    string S;
    cin >> S;

    int ans = 0;
    for (int i = 0; i < S.size(); i++){
        if (S.substr(i, 4) == "ZONe")
            ans++;
    }

    cout << ans << endl;
}