f=lambda s:s[:-1]+"\/ /\."[-ord(s[-1])&3::3]
cases = [".", " .", " .", " .", "/", "/\\", "/\\/", "/\\/\\", "\\", "\\/",
"\\/\\", "\\/\\/"]
for case in cases:
print(case)
print(f(case))
print()
Zj1sYW1iZGEgczpzWzotMV0rIlwvIC9cLiJbLW9yZChzWy0xXSkmMzo6M10KY2FzZXMgPSBbIi4iLCAiIC4iLCAiICAuIiwgIiAgIC4iLCAiLyIsICIvXFwiLCAiL1xcLyIsICIvXFwvXFwiLCAiXFwiLCAiXFwvIiwKCSJcXC9cXCIsICJcXC9cXC8iXQoJCmZvciBjYXNlIGluIGNhc2VzOgoJcHJpbnQoY2FzZSkKCXByaW50KGYoY2FzZSkpCglwcmludCgp