#include using namespace std; int main(){ string S; cin >> S; bool print = false; for(char c : S){ if(c == '#') print = !print; else if(print) cout << c; } }