import java.util.Scanner;
public class Main {
    
    public static void main(String[] args) {
        
        Scanner sc = new Scanner(System.in);
        double sum = 0.0;
        while(sc.hasNextDouble()) {
            sum += sc.nextDouble();
        }
        System.out.println(String.format("%.2f",sum) + " " + String.format("%.2f",sum/3));
    }
}
// 实现输出时保留2位小数
System.out.print(String.format("%.2f",num));
// num处填要输出结果的变量表达式