#include #include int main(void) { char string[100][100],atm[100]; int i,k,temp; int count = 0; scanf("%d",&temp); for(i=0;istrlen(string[i+1])) strcpy(atm,string[i]),strcpy(string[i],string[i+1]),strcpy(string[i+1],atm); if((!temp%2)){ if(count++)printf(" "); for(i=0;i0;i=i-2){ if(i) printf(" "); printf("%s",string[i]); } } else{ if(count++) printf(" "); for(i=0;i0;i=i-2){ if(i) printf(" "); printf("%s",string[i]); } } return 0; }