import java.io.*; import java.util.*; public class Solution { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int N = scanner.nextInt(); char []step=new char[N]; String steps=scanner.next(); step=steps.toCharArray(); int height=0; int previous=0; int count=0; for (int i=0;i