#include #include using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); string S; cin >> S; bool inside = false; for (char c: S) { if (c == '#') inside = !inside; else if (inside) cout << c; } cout << endl; return 0; }