public static void main(String[] args) {
		@SuppressWarnings("resource")
		Scanner scan = new Scanner(System.in);
		
		String userInput = scan.nextLine();
		
		Pattern digitRegex = Pattern.compile("[\\d\\.]+");
		Matcher digitMatch = digitRegex.matcher(userInput);
		
		ArrayList<String> numbers = new ArrayList<>();
		ArrayList<String> operants = new ArrayList<>();
		
		while (digitMatch.find()) {
			numbers.add(digitMatch.group());
		}
		
		Pattern operantsRegex = Pattern.compile("[+-]+");
		Matcher operantsMatch = operantsRegex.matcher(userInput);

		while (operantsMatch.find()) {
			operants.add(operantsMatch.group());
		}
		
		BigDecimal sum = new BigDecimal(numbers.get(0));
		for (int i = 0; i < operants.size(); i++) {
			if (operants.get(i).equals("+")) {
				sum = sum.add(new BigDecimal(numbers.get(i+1)));
			}
			if (operants.get(i).equals("-")) {
				sum = sum.subtract(new BigDecimal(numbers.get(i+1)));
			}
		}
		
		System.out.println(sum);

	}