#define _GLIBCXX_DEBUG #include using namespace std; int main() { int A, B; cin >> A >> B; while(A > 0 and B > 0){ A--; B--; } if(A == 0 and B != 0){ cout << "YES" << endl << B-1 << endl; }else{ cout << "NO" << endl << A+1 << endl; } }