Click Here to go back to the homepage.

Cold-puter Science Solution:


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);
    }
}