#include using namespace std; int main(){ string next; int depth = 0; cin >> next; for(int p = 0; p < next.length(); p++){ if(next.at(p) == 'f' || depth == 0){ cout << '#'; depth++; } else cout << endl << string(depth - 1, '.') << '#'; } cout << endl; }