package no145; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); char[] s = sc.next().toCharArray(); int zz = 0; int yy = 0; int vx = 0; int uu = 0; int lt = 0; int kk = 0; int jj = 0; int ii = 0; int ah = 0; for(int i=0;i= 'z') { zz++; }else if(s[i] >= 'y') { yy++; }else if(s[i] >= 'v') { vx++; }else if(s[i] >= 'u') { uu++; }else if(s[i] >= 'l') { lt++; }else if(s[i] >= 'k') { kk++; }else if(s[i] >= 'j') { jj++; }else if(s[i] >= 'i') { ii++; }else{ ah++; } } int ans = 0; while(yy > 0 && uu > 0 && kk > 0 && ii > 0 && ah > 0) { //yuki* yy--; uu--; kk--; ii--; ah--; ans++; } while(yy > 0 && uu > 0 && kk > 0 && ii >= 2) { //yukii yy--; uu--; kk--; ii-=2; ans++; } while(yy > 0 && uu > 0 && kk > 0 && jj > 0) { //yukj yy--; uu--; kk--; jj--; ans++; } while(yy > 0 && uu > 0 && kk >= 2) { //yukk yy--; uu--; kk-=2; ans++; } while(yy > 0 && uu > 0 && lt > 0) { //yu* yy--; uu--; lt--; ans++; } while(yy > 0 && uu >= 2) { //yuu yy--; uu-=2; ans++; } while(yy > 0 && vx > 0) { //y* yy--; vx--; ans++; } while(yy >= 2) { //yy yy-=2; ans++; } ans += zz; //z System.out.println(ans); } }