#include int main(void){ int quo,ans[2]={1,1}; char buf[100]; fgets(buf,sizeof(buf),stdin); sscanf(buf,"%d",&quo); switch(quo%2){ case 0: printf("2 %d\n",quo/2); break; case 1: printf("1 %d\n",quo); break; } return(0); }