#include <bits/stdc++.h>
using namespace std;
int main(int argc, char* argv[]) {
  int a, b;
  cin >> a >> b;
  if (abs(a - b) > 1 || (a == 0 && b == 0))
    cout << "NO";
  else
    cout << "YES";
}
