string s,t,u[];for(;!eof(stdin);)if ((s=getc(stdin))!='\n')t+=s;else{u.push(t);t="";}write(u.pop());for(int i;;++i)write(u[i]);