import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int N = scan.nextInt(); scan.close(); int a1, a2; if(N % 2 == 0) { a1 = N / 2; a2 = a1; }else { a1 = N / 2; a2 = a1 + 1; } System.out.println(a1 + " " + a2); } }