#include<iostream>
#include<cstring>
using namespace std;

int main()
{
  string s;
  for(;cin>>s;)
    {
      int mem[10];
      int cnt=0;
      int bit=0;
      memset(mem,0,sizeof(mem));
      for(int i=0;i<s.size();i++)
	{
	  int pos=(s[i]-33)/10;
	  while(pos!=bit)
	    {
	      if(pos>bit)
		{
		  bit++;
		  cout<<">";
		}
	      else
		{
		  bit--;
		  cout<<"<";
		}
	    }
	  int move = mem[pos]-s[i];
	  while(mem[pos]!=s[i])
	    {
	      if(move>0)
		{
		  mem[pos]--;
		  cout<<"-";
		}
	      else
		{
		  mem[pos]++;
		  cout<<"+";
		}
	    }
	  cout<<".";
	}
      cout<<endl;
    }

}