#include #include #include #include #include #include using namespace std; int main(){ long long N; cin >> N ; for(long long i=3;i<=N/2;i++){ if(log2(i)!=floor(log2(i))&&log2(N-i)!=floor(log2(N-i))){ cout << i << ' ' << N-i << endl; return 0; } } cout << -1 << endl; return 0; }