#include using namespace std; using int64 = long long; int main() { int64 x; cin >> x; for(int64 i = 1; i < x; i++) { auto j = x - i; if(__builtin_popcount(i) > 1 && __builtin_popcount(j) > 1) { cout << i << " " << j << endl; return (0); } } cout << -1 << endl; }