#include <iostream>
using namespace std;

int main() {
	
	string code,str;
	int p=0, t[10]={},i,j,k,l;
	int a,b;
	
	code = ">+++++[<++++++>-]>+++++[<++++++++>-]>+++++[<++++++++++>-]>++++++[<++++++++++>-]>+++++++[<++++++++++>-]>++++++++[<++++++++++>-]>+++++++++[<++++++++++>-]>++++++++++[<++++++++++>-]>+++++++++++[<++++++++++>-]>++++++++++++[<++++++++++>-]<<<<<<<<<<";
	
	cin>>str;
	
	for(i=0;i<str.length();++i){
		a = (str[i]/10)-3;
		b = a - p;
		p = a;
		
		if(b>=0)for(j=0;j<b;++j)code+=">";
		else for(j=0;j>b;--j)code+="<";
		
		int c=str[i]-(a+3)*10;
		
		for(k=0;k<c;++k)code+="+";
		code+=".";
		for(k=0;k<c;++k)code+="-";
		
	}

	cout<<code<<endl;
	
	return 0;
}