#include #include using namespace std; int main() { string S; getline(cin, S); int pos1 = S.find('#'); int pos2 = S.find('#', pos1 + 1); if (pos1 != string::npos && pos2 != string::npos && pos2 > pos1 + 1) { cout << S.substr(pos1 + 1, pos2 - pos1 - 1) << endl; } else { // Nếu hai dấu # liền nhau, in dòng trống cout << endl; } return 0; }