import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n= sc.nextInt(); int ok=0; int no=0; for(int i=0;i=moji){ ok+=moji; }else{ ok+=Math.floor(temp*12/1000); no+=moji-Math.floor(temp*12/1000); } } System.out.println(ok+" "+no); } }