#include using namespace std; using ll=long long; int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); string T; cin>>T; int M=1023; vector S(M,string(M,'#')); cout< dd={0,1,0}; int c=0; while(1){ y+=dd[z/2]; x+=dd[z/2+1]; if(z%2==1){ if(T[c]=='o'){ int ny=y; int nx=x; while(1){ ny+=dd[z/2]; nx+=dd[z/2+1]; if(ny>=M||nx>=M)break; S[ny][nx]='.'; } } c++; } z++; z%=4; if(y>=M||x>=M)break; S[y][x]='.'; } for(int i=0;i