#include #include #include #include #include #include #include #include #include #include #include #define REP(i, n) for(int i = 0;i < n;i++) #define REPR(i, n) for(int i = n;i >= 0;i--) #define FOR(i, m, n) for(int i = m;i < n;i++) #define FORR(i, m, n) for(int i = m;i >= n;i--) #define SORT(v, n) sort(v, v+n); #define VSORT(v) sort(v.begin(), v.end()); #define llong long long #define pb(a) push_back(a) using namespace std; typedef pair P; typedef long long int ll; typedef pair LLP; int dx[4] = {1,0,0,-1}; int dy[4] = {0,1,-1,0}; #define INF 1000000000007 #define MOD 1000000007 #define ARRAY_MAX 3005 double dp[ARRAY_MAX][ARRAY_MAX];//dp[i][j]:i回投げて表がj回出る確率 int main(){ int a,b; cin >> a >> b; if(a+1 <= b){ cout << "Yes" << endl; cout << "0" << endl; }else{ cout << "No" << endl; cout << a-b+1 << endl; } return 0; }