import std.stdio;
import std.conv;
import std.string;
import std.typecons;
import std.algorithm;
import std.array;
import std.range;
import std.math;
import std.regex : regex;
import std.container;

void main()
{
	auto str = readln.chomp;
	char c = 0;
	foreach (s; str) {
		int num = s.to!int - c;
		if (num > 0) {
			c += num;
			foreach (i; 0..num) write("+");
			write(".");
		} else {
			c += num;
			foreach (i; 0..-num) write("-");
			write(".");
		}
	}
}