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