@@ -0,0 +1,654 @@
+import java.util.Scanner;%0A%0Apublic class Main %7B%0A%0A    public static void main(String%5B%5D args) %7B%0A%0A        Scanner sc = new Scanner(System.in);%0A%0A        int totalPrice = 0;%0A        int totalQuantity = 0;%0A        int count = 0;%0A%0A        while (sc.hasNext()) %7B%0A%0A            String%5B%5D input = sc.next().split(%22,%22);%0A%0A            int price = Integer.parseInt(input%5B0%5D);%0A            int quantity = Integer.parseInt(input%5B1%5D);%0A%0A            totalPrice += price * quantity;%0A            totalQuantity += quantity;%0A%0A            count++;%0A%0A        %7D%0A%0A        System.out.println(totalPrice);%0A        System.out.println(Math.round((double) totalQuantity / count));%0A%0A    %7D%0A%0A%7D%0A

Create : 0045