import java.io.*; import java.util.*; import java.text.*; import java.math.*; import java.util.regex.*; public class Solution { public static void main(String[] args) { /* Enter your code here. Read input from STDIN. Print output to STDOUT. Your class should be named Solution. */ int valley = 0; int current = 0; boolean wasBelow = false; Scanner scan = new Scanner(System.in); int numberOfStep = scan.nextInt(); String upOrDown = scan.next(); for(int i=0;i= 0){ valley++; } //if current is negative(below sea level) if(current < 0){ wasBelow = true; }else{ wasBelow = false; } } System.out.println(valley); } }