#include using namespace std; #define int long long #define fs first #define sc second #define mp make_pair typedef pair pii; string s; int32_t main() { cin.tie(0) -> sync_with_stdio(false); bool flag = false; cin >> s; for (auto &i : s) { if (i == '#') flag = !flag; else if (flag) cout << i; } cout << endl; return 0; }