#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; typedef long long LL; typedef unsigned long long ULL; #define MEM(a,b) memset((a),(b),sizeof(a)) const LL INF = 1e9 + 7; const int N = 5e5 + 10; int a[N]; int main() { //freopen("input.txt", "r", stdin); //freopen("output.txt", "w", stdout); string str; cin >> str; int pos1 = str.find_first_of('#'); int pos2 = str.find_last_of('#'); puts(str.substr(pos1, pos2 - pos1 - 1).c_str()); return 0; }