#include using namespace std; #ifdef LOCAL #include "debug.hpp" #else #define debug(...) 1 #endif int main() { ios::sync_with_stdio(false); cin.tie(nullptr); string s; cin >> s; int n = s.size(); int a = -1, b = -1; for (int i = 0; i < n; i++) { if (s[i] == '#') { if (a == -1) { a = i; } else { b = i; } } } for (int i = a + 1; i < b; i++) { cout << s[i]; } cout << '\n'; }