#include using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); ++i) int main() { // Input string S; cin >> S; // Output bool skip = true; for (const char& c : S) { if (c == '#') skip = !skip; else if (!skip) cout << c; } cout << endl; }