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. */ Scanner in = new Scanner(System.in); int steps_count = in.nextInt(); String steps_str = in.next(); in.close(); char[] steps = steps_str.toCharArray(); int sea_level = 0; int level = sea_level; int valley_counts = 0; for (int i=0; i