import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main{
public static void main(String[] args) throws IOException{
BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));
String str = bf.readLine();
int n = Integer.parseInt(str);
if( n % 2 !=0){
int a = (n+1)/2;
int b = (n-1)/2;
System.out.println(a+" "+b);
}
else{
int a = n/2;
int b = n/2;
System.out.println(a+" "+b);
}
}
}
import java.io.IOException;
import java.io.InputStreamReader;
public class Main{
public static void main(String[] args) throws IOException{
BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));
String str = bf.readLine();
int n = Integer.parseInt(str);
if( n % 2 !=0){
int a = (n+1)/2;
int b = (n-1)/2;
System.out.println(a+" "+b);
}
else{
int a = n/2;
int b = n/2;
System.out.println(a+" "+b);
}
}
}