//
// Created by fym on 2022/12/15.
//
#include <bits/stdc++.h>
using namespace std;
int main(){
int m,k;
cin>>m>>k;
int s;
if(m%19==0){
s=m/19;
if(s==k*3){
cout<<"YES";
}else{
cout<<"NO";
}
}else{
cout<<"NO";
}
return 0;
}
题目请见下面链接:
http://ybt.ssoier.cn:8088/problem_show.php?pid=1090