• + 0 comments
    num_int = int(input())
    string_nums = input()
    
    # Converting string_nums to list:
    string_list = string_nums.split()
    int_string_list = list(map(int, string_list))
    
    calc_mean = st.mean(int_string_list)
    calc_median = st.median(int_string_list)
    calc_mode = st.multimode(int_string_list)
    min_calc_mode = min(calc_mode)
    calc_std = st.pstdev(int_string_list)
    calc_std_round = round(calc_std, 1)
    
    # bounds:
    length = len(int_string_list)
    interval = 1.96 * (calc_std / length ** 0.5)
    ub = calc_mean + interval
    round_ub = round(ub, 1)
    lb = calc_mean - interval
    round_lb = round(lb, 1)
    
    print(calc_mean)
    print(calc_median)
    print(min_calc_mode)
    print(calc_std_round)
    print(round_lb, round_ub)