import std.stdio, std.string, std.conv, std.algorithm; import std.range, std.array, std.container, std.math, std.typecons; immutable int mod = 10^^9 + 7; immutable int inf = 20000; string s; void main() { s = readln.chomp; int sgn = 1, value, ans, op; value = inf; foreach (ch ; s) { if (ch == '+' || ch == '-') { if (value == inf) { sgn = (ch == '+' ? 1 : -1); } else { op = (ch == '+' ? -1 : 1); ans = sgn * value; value = inf; sgn = 1; } } else { if (value == inf) { value = ch - '0'; } else { value = 10 * value + ch - '0'; } } } ans += op * sgn * value; writeln(ans); } bool is_uruu(int x) { return !(x % 400) || (x % 100 && !(x % 4)); }