#include using namespace std; int main(){ int H,W,N; cin>>H>>W>>N; vector height(W); string S; for(int i=0;i>S; for(int j=W-1;j>=0;--j){ height[j]+=(S[j]=='#'); } } vector> position(W-2,vector(0)); int temp; for(int i=0;i>temp; position[temp].push_back(i); } vector> ans(N,vector(3)); vector isPut(N,false); for(int i=0;ij){ cout<<'#'; }else{ cout<<'.'; } } cout<