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 in = new Scanner(System.in); int q = in.nextInt(); char hr[]={'h','a','c','k','e','r','r','a','n','k'}; int hrf[]={1,2,1,2,1,2,2,2,1,2}; String s[]=new String[q]; for(int a0 = 0; a0 < q; a0++){ s[a0] = in.next(); // your code goes here } int count=0; int a[]=new int[hr.length]; for(int k=0;k