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 scanner = new Scanner(System.in); int N = scanner.nextInt(); String hike = scanner.next(); char[] ch = hike.toCharArray(); int down = 0; int up = 0; int count=0; boolean flag = false; boolean next = false; for(int i=0;i