import java.util.*;
public class Kattis {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
// int cases = Integer.parseInt(sc.nextLine());
sc.nextLine();
System.out.println(sc.nextLine().split("-").length -1);
}
}