#include #define rep(i,n) for(int i=0;i ; using pll = pair; constexpr int INF = 1e9; constexpr ll LINF = 1e18; constexpr int MOD = 1000000007; int main(){ ll n; cin >> n; if(n <= 5|| n == 7){ cout << -1 << endl; return 0; } ll a = 3,b = n - 3; while(1){ if(__builtin_popcount(a) == 1 || __builtin_popcount(b) == 1){ ++ a; -- b; } else{ break; } } cout << a << " " << b << endl; return 0; }