#include using namespace std; using ll = long long; #define rep(i,m,n) for(int i=m; i> S; int cnt = 0; for(char &c : S){ if(c == '#') cnt++; else if(cnt == 1) cout << c; } cout << endl; return 0; }