#include using namespace std; int main(){ string S; bool hash = false; bool output = false; cin >> S; for (int i = 0; i < S.length(); ++i){ if (hash == false && S[i] == '#'){ output = true; hash = true; continue; }else if (hash == true && S[i] == '#'){ break; } if (output == true){ cout << S[i]; } } cout << endl; return 0; }