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) { Scanner in = new Scanner(System.in); int chars = in.nextInt(); in.nextLine(); String str = in.nextLine(); boolean is_valley = false; int valleys = 0; int height = 0; for (int i=0; i