import java.util.*; public class Typing { public static void main(String[] arg){ int n; int suc=0,fal=0,t,l,can; String s; Scanner sc = new Scanner(System.in); n = sc.nextInt(); for(int i = 0;i= l){ suc = suc + l; }else { suc = suc + can; fal = fal - can + l; } } System.out.println(suc+" "+fal); } }