import java.util.*; class No35{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); double[] second = new double[N]; String[] str = new String[N]; long strLength = 0; long actualStr = 0; for(int i=0; i str[j].length()){ actualStr += str[j].length(); }else{ actualStr += Naruheso; } } System.out.println(actualStr+" "+(strLength - actualStr)); } }