#include #include std::string S[50]; int main(){ int N; std::cin >> N; int L = 0; for(int i=0;i> S[i]; L += S[i].size(); } std::string T = ""; std::string *first = S; for(int i=0;ierase(0, 1); if(first->empty()){ ++first; --N; } } std::cout << T << std::endl; }