import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int suc = 0; int miss = 0; for(int i=0; i=b){ suc = suc + b; }else{ suc = suc + type; miss = miss + (b-type); } } System.out.println(suc + " " + miss); } }