using System; public class Hello { public static void Main() { var s = new long[60]; s[0] = 1; for (int i = 1; i < 60; i++) s[i] = s[i - 1] * 2L; var n = long.Parse(Console.ReadLine().Trim()); var a = 1L; for (int i = 3; i <= n; i++) if (check(s, i) && check(s, n - i)) { Console.WriteLine("{0} {1}", i, n - i); goto end; } Console.WriteLine(-1); end:; } public static bool check(long[] s, long n) { for (int i = 0; i < 60; i++) { if (n == s[i]) return false; else if (n < s[i]) return true; } return true; } }