#include int main(void){ int N; scanf("%d",&N); printf("%d %d\n",1,N-1); return 0; }