#include <bits/stdc++.h>   using namespace std;   const int N = 100004;   unsigned long long a, b, c = 0, x = 0, y = 0;   bool f = 1;   void solve() {     int c = 0;     for (int i = 0; i < 64; i++) {       if (b >> i & 1) y |= 1ll << i;     }     a -= y;     for (int i = 1; i < 64; i++) {       int r = a >> i & 1, s = b >> (i - 1) & 1;       if (r == 1) {         if (s == 0) {           x |= 1ll << (i - 1);           y |= 1ll << (i - 1);         } else {           f = 0;           break;         }       }     }   }   int main() {     cin >> a >> b;     solve();     if (!f)       puts( -1 );     else       printf( %llu %llu , x, y);   }   