#include <iostream> #include <stdlib.h> using namespace std; int main() { char s[30]; cin>>s; if(strlen(s)%2==1) { strcpy(s+strlen(s)/2, s+strlen(s)/2+1); cout<<s<<endl; } while(strlen(s)!=0) { strcpy(s+strlen(s)/2-1, s+strlen(s)/2+1); cout<<s<<endl; } system("PAUSE"); return 0; }