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));
    }
}