#include int main(){ int N; setvbuf(stdout,NULL,_IONBF,0); scanf("%d",&N); if(N%2==0)printf("%d %d",N/2,N/2); else printf("%d %d",(N-1)/2,(N+1)/2); }