#include #define rep(i,n) for(int i = 0; i < (n); i++) using namespace std; typedef long long ll; int main(){ cin.tie(0); ios::sync_with_stdio(0); ll N; cin >> N; for(ll x : {3, 5, 7, 9, 11}) { ll y = N - x; if(x < N && 1 <= y && y < N && __builtin_popcountl(y) != 1) { cout << x << " " << y << endl; return 0; } } cout << -1 << endl; }