n = io.read("*n") a = math.floor(n / 2) io.write(string.format("%d %d\n", a, n - a))