#include using ll = long long; using llu = long long unsigned; using namespace std; #define MOD 998244353 int main() { string S; cin >> S; bool isStart = false; for (auto x : S) { if (x=='#') { if (isStart) { isStart = false; } else { isStart = true; } } else { if (isStart) { cout << x; } } } cout << endl; return 0; }