#include <bits/stdc++.h>
int main() {
  int ans = 0;
  char line[5];
  scanf("%s", line);
  for (int i = 0; line[i] != '\0'; i++) {
    if (*line == '+')
      ans++;
    else
      ans--;
  }
  return 0;
}
