import java.util.Scanner;
public class Main{
    public static void main(String[] args){
        Scanner in = new Scanner(System.in);
        String str = in.nextLine();
        String[] scores = str.split(" ");
        double sum = 0;
        for(String score : scores) {
            sum += Double.parseDouble(score);
        }
        double average = sum / 3;
        System.out.printf("%.2f %.2f", sum, average);
    }
}