text: #include<bits/stdc++.h>
  using namespace std;
  #define ll long long
  #define ld long double
  #define mod 1000000007
  double PI = acos(-1);
  #define fi first
  #define se second
  #define mp make_pair
  #define pb push_back
  #define ALL(v) v.begin(), v.end()
  #define ALLA(arr, sz) arr, arr + sz
  #define st(v) sort(ALL(v))
  #define revrs(v) reverse(ALL(v))
  #define sta(arr, sz) sort(ALLA(arr, sz))
  #define revrsa(arr, sz) reverse(ALLA(arr, sz))
  #define TC(t) while (t--)
  //  For debug
  #define deb(...) logger(#__VA_ARGS__, __VA_ARGS__)
  template<typename ...Args>
  void logger(string vars, Args&&... values) {
      cout << vars << " = ";
      string delim = "";
      (..., (cout << delim << values, delim = ", "));
  }
  template <typename... T>
  void read(T &...args) {
      ((cin >> args), ...);
  }
  template <typename... T>
  void write(string delimiter, T &&...args) {
      ((cout << args << delimiter), ...);
  }
  template <typename T>
  void readContainer(T &t) {
      for (auto &e : t) {
          read(e);
      }
  }
  template <typename T>
  void writeContainer(string delimiter, T &t) {
      for (const auto &e : t) {
          write(delimiter, e);
      }
      write("\n");
  }
  
  int main(){
      int A,B;cin>>A>>B;
      if(B<=A*6 && B>=A){
          cout<<"Yes\n";
      }
      else write("\n","No");
  }