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