import java.io.*; import java.util.*; public class Solution { public static void main(String[] args) { int count = 0,total = 0; Scanner in = new Scanner(System.in); int n = in.nextInt(); in.nextLine(); String s = in.nextLine(); String[] arr = s.split("(?