import std; void main () { string S = readln.chomp; bool on = false; foreach (c; S) { if (c == '#') { on = !on; continue; } if (on) { write(c); } } write("\n"); }