#include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; #define Would #define you const int INF = 999999999; const int MOD = 1e9 + 7; const double pi = 3.141592653589793238; bool f(long long n) { while (n % 2 == 0) { n /= 2; } if (n == 1) { return 0; } return 1; } int main() { long long n; cin >> n; for (int i = 3; i < n / 2 + 1; ++i) { if (f(i) && f(n - i)) { cout << i << " " << n - i << endl; return 0; } } cout << -1 << endl; }