• + 0 comments

    **simple and sweet python solution **

    from collections import Counter as c
    n = int(input())
    x = list(map(int,input().split()))
    print(s.mean(x))
    print(s.median(x))
    a = c(x)
    m = 0
    for i,j in a.items():
    if m < j:
    m = j
    if m==1:
    print(min(x))
    else:
    print(min(s.multimode(x)))