using System; using System.Collections.Generic; using System.Linq; using static System.Console; class Program { static void Main() { var N = int.Parse(ReadLine()); WriteLine(N % 2 == 0 ? $"{N / 2} {N / 2}" : $"{N / 2} {N / 2 + 1}"); } }