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 scan=new Scanner(System.in); int n=scan.nextInt(); String ip=scan.next(); int atSeaLevel=1,climbing=0,drowning=0,nod=0,nou=0; int res=0; for(int i=0;i