#include<iostream>
#include<bits/stdc++.h>
#include<climits>

#define PI 3.14159265358979323846264338327950L
#define ll long long
#define db double

using namespace std;

const int MOD = 1e9+7;

void go(){
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout<<fixed;
  cout<<setprecision(20);

  #ifndef ONLINE_JUDGE
       freopen("input.txt","r",stdin);
       freopen("output.txt","w",stdout);
  #endif
}
void solve(){
    int a,b; cin>>a>>b;
    for(int i = -200; i <= 200; i++){
        if((2*i)==(a+b)){
            cout<<i<<" "<<a-i<<endl;
            return;
        }
    }
}  



int main(){
    go(); 

    // code here
    int t = 1;
    while(t--) solve();
   
}





#include <iostream>
#include <map>
#include<vector>
#include<set>
#include<math.h>
#include <bits/stdc++.h>
// #define testPrint  
using namespace std;

bool solve()
{
    int m,h;
    cin >> m>>h;
    return ((h%m) == 0);
    

}


signed main(int arg, char **args)
{

    
    
    
    
        cout<<((solve())?"Yes":"No");
    
    return 0;
}