#include <bits/stdc++.h>
using namespace std;

int main() {
    int n; 
    cin >> n;
    int X = 0; // Initialize a variable to hold the value

    while (n--) {
        string z;
        cin >> z;
        
        if (z == "++X" || z == "X++") {
            n += 1;  // Increment X
        } 
        else if (z == "X--" || z == "--X") {
            n -= 1;  // Decrement X
        }
    }

    cout << X << endl; // Print the final value of X
    return 0;  // Indicate successful execution
}
