import java.io.*; import java.util.*; public class Main_yukicoder145 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); Printer pr = new Printer(System.out); int n = sc.nextInt(); char[] s = sc.next().toCharArray(); n = s.length; int[] cnt = new int[26]; for (int i = 0; i < n; i++) { cnt[s[i] - 'a']++; } int cz = cnt['z' - 'a']; int cy = cnt['y' - 'a']; int cvwx = cnt['v' - 'a'] + cnt['w' - 'a'] + cnt['x' - 'a']; int cu = cnt['u' - 'a']; int clt = cnt['l' - 'a'] + cnt['m' - 'a'] + cnt['n' - 'a'] + cnt['o' - 'a'] + cnt['p' - 'a'] + cnt['q' - 'a'] + cnt['r' - 'a'] + cnt['s' - 'a'] + cnt['t' - 'a']; int ck = cnt['k' - 'a']; int cj = cnt['j' - 'a']; int ci = cnt['i' - 'a']; int cah = cnt['a' - 'a'] + cnt['b' - 'a'] + cnt['c' - 'a'] + cnt['d' - 'a'] + cnt['e' - 'a'] + cnt['f' - 'a'] + cnt['g' - 'a'] + cnt['h' - 'a']; int ret = cz; // ----------------------------------------- int tmp = Math.min(Math.min(Math.min(cy, cu), ck), ci); tmp = Math.min(tmp, cah); ret += tmp; cy -= tmp; cu -= tmp; ck -= tmp; ci -= tmp; cah -= tmp; tmp = Math.min(Math.min(Math.min(cy, cu), ck), ci / 2); ret += tmp; cy -= tmp; cu -= tmp; ck -= tmp; ci -= tmp * 2; // ----------------------------------------- tmp = Math.min(Math.min(cy, cu), ck); tmp = Math.min(tmp, cj); ret += tmp; cy -= tmp; cu -= tmp; ck -= tmp; cj -= tmp; tmp = Math.min(Math.min(cy, cu), ck / 2); ret += tmp; cy -= tmp; cu -= tmp; ck -= tmp * 2; // ----------------------------------------- tmp = Math.min(cy, cu); tmp = Math.min(tmp, clt); ret += tmp; cy -= tmp; cu -= tmp; clt -= tmp; tmp = Math.min(cy, cu / 2); ret += tmp; cy -= tmp; cu -= tmp * 2; // ----------------------------------------- tmp = Math.min(cy, cvwx); ret += tmp; cy -= tmp; cvwx -= tmp; ret += cy / 2; // ----------------------------------------- pr.println(ret); pr.close(); sc.close(); } @SuppressWarnings("unused") private static class Scanner { BufferedReader br; Iterator it; Scanner (InputStream in) { br = new BufferedReader(new InputStreamReader(in)); } String next() throws RuntimeException { try { if (it == null || !it.hasNext()) { it = Arrays.asList(br.readLine().split(" ")).iterator(); } return it.next(); } catch (IOException e) { throw new IllegalStateException(); } } int nextInt() throws RuntimeException { return Integer.parseInt(next()); } long nextLong() throws RuntimeException { return Long.parseLong(next()); } float nextFloat() throws RuntimeException { return Float.parseFloat(next()); } double nextDouble() throws RuntimeException { return Double.parseDouble(next()); } void close() { try { br.close(); } catch (IOException e) { // throw new IllegalStateException(); } } } private static class Printer extends PrintWriter { Printer(PrintStream out) { super(out); } } }