#include #include using namespace std; int main(){ string s; cin >> s; int cnt = 0; for(auto &it: s){ if(it == '#') cnt++; if(cnt == 1 && it != '#') cout << it; } cout << endl; return 0; }