#include <bits/stdc++.h>
int main() {
  char a[4];
  int i, ans = 0;
  for (i = 0; i < 4; i++) {
    scanf("%c", a[i]);
    if (a[i] == '+') ans++;
    if (a[i] == '-') ans--;
  }
  printf("%d", ans);
  return 0;
}
