import java.util.*; class Main { static Scanner sc = new Scanner(System.in); public static void main(String[] args) { int n = sc.nextInt(); int correct = 0; int wrong = 0; for (int i=0; i= length) { correct += length; } else { correct += typeNum; wrong += length - typeNum; } } System.out.println(correct+" "+wrong); } }