def f(n,s=''): if(n>9>f(n-10,s+'*'))|(n%10>1>f(n-1,s+'|'))<1:print s f(int(raw_input()[::2]))