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 sc1 = new Scanner(System.in); int length = sc1.nextInt(); //System.out.println(length); String code = sc1.next(); int counter=0; int counterprevious=0; int maxcounter=0; for(int i=0;i