<?php
// A - Eating Symbols Easy
$result = 0;

for ($i=0; $i < 4; $i++) {
  $stdin = trim(fgets(STDIN));
  if ($stdin == '+') $result = $result + 1;
  else if ($stdin == '-') $result = $result - 1;
}

echo ("$result\n");
?>
