import java. util. Scanner; public class Main{ public static void main (String[] args){ Scanner scanner = new Scanner (System. in); Double[] test = new Double[3]; int x = 0; String answer = scanner. next(); String[] a = answer. split (","); for (int j = 0; j < test. length; j ++){ test[j] = Double. parseDouble (a[j]); } for (int j = 0; j < test. length; j ++){ x += test[j]; } System. out. println ("合計点:" + x); double f = (double)x / test. length; System. out. println ("平均点:" + (Math. floor (f * 10)) / 10); } }