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 b = iota(42, 133, 10);
	auto ptr = new int[](10);
	auto str = readln.chomp;
	int pos;
	foreach (c; str) {
		int cur;
		foreach (e; b) {
			if (c <= e) break;
			cur++;
		}
		while (cur < pos) {
			write("<");
			pos--;
		}
		while (cur > pos) {
			write(">");
			pos++;
		}
		while (ptr[pos] < c) {
			write("+");
			ptr[pos]++;
		}
		while (ptr[pos] > c) {
			write("-");
			ptr[pos]--;
		}
		write(".");
	}
}