#pragma GCC optimize("O2")
#pragma GCC target("avx,avx2,fma")

#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define fastio ios_base::sync_with_stdio(false);cin.tie(NULL);
#define fori(i,init,end) for(ll i=init;i<end;i++)
/*
 1. Create an empty list
 2. Destroy a list
 3. Determine whether a list is empty
 4. Determine the number of items in a list
 5. Traverse the list
 6. Insert an item at a given position in the list
 7. Delete the item at a given position in the list
 8. Search for an item
 9. Access the item at a given position in the list, etc
 */
void Solveit()
{
    ll a,b;
    cin>>a>>b;
    if(abs(a-b)>2)
        cout<<"No\n";
    else
        cout<<"Yes\n";
}

int main()
{
    fastio;
    ll t=1;
    //cin>>t;
    while(t--)
    {
        Solveit();
    }
    return 0;
}


#include <bits/stdc++.h>
using namespace std;
#define ar array
#define ll long long

const int MAX_N = 2e5 + 1;
const int MOD = 1e9 + 7;
const int INF = 1e9;
const ll LINF = 1e18;
void solve()
{
    char c1,c2,c3;
    cin>>c1>>c2>>c3;
    if(c1==c2 && c2==c3) cout<<"Won"<<endl;
    else cout<<"Lost"<<endl;
}

int main() {
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    int t=1;
    //cin>>t;
    //freopen("input.txt", "r", stdin);
    //freopen("output.txt", "w", stdout);
    while(t--)
    solve();
}
