n=raw_input();l=0 while n!=l: print n;l=n for t in["/|\\ x","/| //",r"|\ \\","x /|\\"]:n=n.replace(*t.split())