Problem:
Min, Max and Sum Write a program which reads a sequence of $n$ integers $a_i (i = 1, 2, ... n)$, and prints the minimum value, maximum value and sum of the sequence. Input In the first line, an integer $n$ is given. In the next line, $n$ integers $a_i$ are given in a line. Output Print the minimum value, maximum value and sum in a line. Put a single space between the values. Constraints  $0 < n \leq 10000$  $-1000000 \leq a_i \leq 1000000$  Sample Input 5
10 1 5 4 17 Sample Output 1 17 37

Solution (Python):
N=int(input())
a=list(map(int,input().split()))
a.sort()

m=a[0]
M=a[-1]
S=0
for ai in a:
    S+=ai

print(m,M,S)

Solution (Python):

n=int(input())
a=sorted([int(x) for x in input().split()])
print(a[0],a[-1],sum(a))

Solution (Python):
i = int(input())
lst = list(map(int,input().split()))

lst.sort()
s = 0

for t in lst:
    s +=t

print(lst[0], lst[-1],s)

Solution (Python):
n = int(input())

ai = list(map(int,input().split()))
    
print(min(ai),max(ai),sum(ai))

Solution (Python):
n = int(input())
numbers = list(int(x) for x in input().split())
numbers.sort()

total = 0

for i in range(n):
    total += numbers[i]
    
print(numbers[0],numbers[n - 1],total)

Solution (Python):
n = int(input())
a = [int(i) for i in input().split()]
print(min(a), max(a), sum(a))

Solution (Python):
a = int(input())
b = list(map(int,input().split()))

print(min(b), max(b), sum(b))

Solution (Python):
n = int(input())
data = list(map(int, input().split()))   

vmin = min(data)  
vmax = max(data)  
vsum = sum(data)  

print(vmin, vmax, vsum)

Solution (Python):
n = int(input())
a = list(map(int, input().split()))
print(min(a), max(a), sum(a))

Solution (Python):
N=int(input())
a=list(map(int,input().split()))
print(min(a),max(a),sum(a))

Solution (Python):
n = int(input())

l = list(map(int,input().split()))

print(min(l),max(l),sum(l))

Solution (Python):
a = input()
b = input().split()
for i in range(len(b)):
	b[i]=int(b[i])

minb=min(b)
maxb=max(b)
sumb=sum(b)

print(minb,maxb,sumb)

Solution (Python):
k = input()
i = list(map(int,input().split()))
print(min(i),max(i),sum(i))

Solution (Python):
n = int(input())
d = list(map(int, input().split()))
dmin = min(d)  
dmax = max(d)  
dsum = sum(d)  

print(dmin, dmax, dsum)

Solution (Python):
i=int(input())
list = [int(i) for i in input().split()]
a=min(list)
b=max(list)
c=sum(list)
print(a,b,c)

Solution (Python):
n = int(input())
lst = list(map(int,input().split()))

print("{} {} {}".format(min(lst),max(lst),sum(lst)))

Solution (Python):
input()
n = list(map(int, input().split()))
a = min(n)
b = max(n)
c = sum(n)
print(f'{a} {b} {c}')

Solution (Python):
input()
b = list(map(int, input().split()))
print(min(b), max(b), sum(b))

Solution (Python):
n=input()
m=list(map(int,input().split()))

print(min(m),max(m),sum(m))

Solution (Python):
n =  int(input())
ai = list(map(int,input().split()))
a = min(ai)
b = max(ai)
c = sum(ai)
print(a,b,c)

Solution (Python):
n = input()
lst = list(map(int, input().split()))
print(min(lst), max(lst), sum(lst))

Solution (Python):
n=int(input())
a=map(int,input().split())
a=list(a)
print(min(a),max(a),sum(a))

Solution (Python):
n=int(input())
lst=list(map(int,input().split()))
print(min(lst), max(lst), sum(lst))

Solution (Python):
n=int(input())
a=list(map(int,input().split()))
b=sorted(a)
print(b[0],b[n-1],sum(b))

Solution (Python):
n = int(input())
numbers = list(int(x) for x in input().split())
numbers.sort()

total = 0

for i in range(n):
    total += numbers[i]

print(numbers[0], numbers[n - 1], total)

Solution (Python):
N = int(input())
nums = list(int(x) for x in input().split())
print(min(nums),max(nums),sum(nums))

Solution (Python):
n = int(input())
q = list(map(int,input().split()))

print(min(q),max(q),sum(q))

Solution (Python):
n = int(input())
a = input().split()
if len(a) == n:
    a_int = [int(n) for n in a]
    print(min(a_int),max(a_int),sum(a_int))

Solution (Python):
n = int(input())
lst = list(map(int,input().split()))
print(min(lst),max(lst),sum(lst))

Solution (Python):
n = int(input())
s = list(map(int, input().split()))
print(min(s), max(s), sum(s))

Solution (Python):
n = int(input())
nums = input().split()
new = []
s = 0
for i in nums:
    s = s + int(i)
    new.append(int(i))
new.sort()
print(new[0], new[-1], s)

Solution (Python):
def mapt(fn, *args):
    return tuple(map(fn, *args))
    
    
def aa(n,l):
    print(min(l), max(l), sum(l))

n = input()
l = mapt(int, input().split(" "))
aa(n, l)

Solution (Python):
n = int(input())
L = list(map(int, input().split()))
max, min, sum = L[0], L[0], 0
for i in L:
    if i > max:
        max = i
    if i < min:
        min = i
    sum += i
print(min, max, sum)

Solution (Python):
n = int(input())
sent = list(map(int, input().split()))
print(min(sent), max(sent), sum(sent))

Solution (Python):
n = input()
list = list(map(int, input().split()))
print(min(list), max(list), sum(list))

Solution (Python):
n=int(input())
x=list(map(int, input().split()))

print(min(x),max(x),sum(x))

Solution (Python):

n = int( input() )
x = list( map(int, input().split()) )

print (  min(x),max(x),sum(x))

Solution (Python):
n = int(input())
a = list(map(int, input().split()))
print(min(a), max(a), sum(a))

Solution (Python):
n = input()
a = list(map(int, input().split()))
print(min(a), max(a), sum(a))

Solution (Python):
n = input()
a = list(map(int, input().split()))
print(min(a), max(a), sum(a))

Solution (Python):
n = input()
lst = list(map(int,input().split()))
a = min(lst)
b = max(lst)
c = sum(lst) 
print(a,b,c)

Solution (Python):
N=int(input())
a=list(map(int,input().split()))
print(min(a),max(a),sum(a))

Solution (Python):
input()
b=list(map(int,input().split()))
print(min(b),max(b),sum(b))

Solution (Python):
n=map(int, input().split())
l = list(map(int, input().split()))
print(min(l),max(l),sum(l))

Solution (Python):
n=int(input())
a=list(map(int, input().split()))
print(min(a), max(a), sum(a))

Solution (Python):
n = int(input())
l = list(map(int,input().split()))

l.sort()
max = str(l[n-1])
min = str(l[0])
s = str(sum(l))

print(min + " " + max +" " + s)

Solution (Python):
n=int(input())
num=list(map(int,input().split(" ")))
ans=[min(num),max(num),sum(num)]
print(" ".join(map(str,ans)))

Solution (Python):
x = input()
y = list(map(int, input().split()))

print(min(y), max(y), sum(y))

Solution (Python):
N=int(input())
a=list(map(int,input().split()))
print(min(a),max(a),sum(a))

Solution (Python):
a = int(input())
li = list(map(int,input().split()))
print(min(li),max(li),sum(li),sep=' ')

Solution (Python):
n=int(input())
a=input()
a=a.split()
a=list(map(int,a))
print(min(a),max(a),sum(a))

Solution (Python):
N = int(input())
a = list(map(int,input().split()))
print(min(a),max(a),sum(a))

Solution (Python):
n = int(input())
a = list(map(int, input().split()))
print(min(a), max(a), sum(a))

Solution (Python):

n = int(input())
a =list(map(int,input().split()))
print(min(a) ,max(a) ,sum(a))

Solution (Python):
n = int(input())
lst = list(map(int,input().split()))
a = min(lst)
b = max(lst)
c = sum(lst)
print('{} {} {}'. format(a,b,c))

Solution (Python):
n = int(input())
a = sorted([int(x) for x in input().split()])
print(a[0],a[-1],sum(a))

Solution (Python):
a = int(input())
b = list(map(int, input().split()))
c = min(b)
d = max(b)
e = sum(b)
print(c,d,e)

Solution (Python):





def main():
    n = int(input())
    a = list(map(int, input().split()))
    print(f"{min(a)} {max(a)} {sum(a)}")


if __name__ == '__main__':
    main()

Solution (Python):
n = int(input())
num = list(map(int, input().split()))

mi = min(num)
ma = max(num)
s = sum(num)

print(mi, ma, s)

Solution (Python):
n=int(input())
x=list(map(int,input().split()))
a=min(x)
b=max(x)
c=sum(x)

print(a,b,c)

Solution (Python):
n=int(input())
table=list(map(int, input().split()))

nmin = min(table)
nmax = max(table)
nsum = sum(table)

print('%d %d %d' %(nmin, nmax, nsum))

Solution (Python):
n = int(input())
nums = list(map(int, input().split()))
nums = sorted(nums)
sumnum = sum(nums)

print("{} {} {}" .format(nums[0], nums[len(nums)-1], sumnum))

Solution (Python):
n = int(input())
x = list(map(int,input().split()))

print(min(x), max(x), sum(x))

Solution (Python):
n = int(input())
a = list(map(int,input().split()))


print(min(a), max(a), sum(a))

Solution (Python):
n=int(input())
lst = list(map(int,input().split()))

a = min(lst)
b = max(lst)
c = sum(lst)

print(a,b,c)

Solution (Python):
N = int(input())
A = list(map(int, input().split()))
a = min(A)   
b = max(A)   
c = sum(A)   
print(a, b, c)

Solution (Python):
n = int(input())
a = list(map(int, input().split()))

print(f"{min(a)} {max(a)} {sum(a)}")

Solution (Python):
N = int(input())
A = list(map(int, input().split()))
print(min(A), max(A), sum(A))

Solution (Python):
n=int(input())
list=list(map(int,input().split()))
print(min(list),max(list),sum(list))

Solution (Python):
n=int(input())
a=list(map(int,input().split()))
print(f'{min(a)} {max(a)} {sum(a)}')

Solution (Python):
n = input()
l = list(map(int,input().split()))
print(min(l),max(l),sum(l))

Solution (Python):
n=int(input())
ai=list(map(int,input().split()))

print(min(ai),max(ai),sum(ai))

Solution (Python):
n = int(input())
a = list(map(int,input().split()))
print(min(a),max(a),sum(a))

Solution (Python):
n = input()
numlist = list(map(int,input().split()))

numlist.sort()

min = numlist[0]
max = numlist[int(n)-1]
print(min,max,sum(numlist))

Solution (Python):
total_numbers = int(input())

numbers = [int(x) for x in input().split()]

max_number = max(numbers)
min_number = min(numbers)

total = sum(numbers)

print(str(min_number) + " " + str(max_number) + " " + str(total))

Solution (Python):
N=int(input())
a=list(map(int,input().split()))
print(min(a),max(a),sum(a))

Solution (Python):
n=int(input())
x=list(map(int,input().split()))

a=min(x)
b=max(x)
c=sum(x)

print(a,b,c)

Solution (Python):
n = int(input())
lst = list(map(int,input().split()))

a = min(lst)
b = max(lst)
c = sum(lst)
print(a,b,c)

Solution (Python):
n=int(input())
a=list(map(int,input().split()))
print("{} {} {}".format(min(a),max(a),sum(a)))

Solution (Python):
N=int(input())
a=list(map(int,input().split()))
print(min(a),max(a),sum(a))

Solution (Python):



n = int(input())
lst = list(map(int,input().split()))

a = min(lst)   
b = max(lst)   
c = sum(lst)
print(a,b,c)

Solution (Python):
k = input()
i = list(map(int,input().split()))
print(min(i),max(i),sum(i))

Solution (Python):
n = int(input())
data = list(map(int, input().split()))   

a = min(data)  
b = max(data)  
c = sum(data)  

print(a,b,c)

Solution (Python):
n = int(input())
ls = list(map(int,input().split()))

min = 1000001
for i in ls:
    if i < min:
        min = i

max = -1000001
for i in ls:
    if i > max:
        max = i

sum = 0
for i in ls:
    sum += i
    
print(min, max, sum)

Solution (Python):
N=int(input())
L=list(map(int, input().split()))

min=min(L)
max=max(L)
sum=sum(L)
print(f"{min} {max} {sum}")

Solution (Python):

l = input()
arr = list(map(int, input().split()))

min, max, sum = 1000000, -1000000, 0

for a in arr:
    sum += a
    if max < a:
        max = a
    if min > a:
        min = a
    
print(f'{min} {max} {sum}')

Solution (Python):
N, *A = map(int, open(0).read().split())
print(min(A), max(A), sum(A))

Solution (Python):
n=int(input())
lst=list(map(int,input().split()))

print("{} {} {}".format(min(lst),max(lst),sum(lst)))

Solution (Python):
n = int(input())
nums = list(map(int, input().split()))

print(min(nums), max(nums), sum(nums))

Solution (Python):
n = int(input())
data = list(map(int, input().split()))   
vmin = min(data)  
vmax = max(data)  
vsum = sum(data)  

print(vmin, vmax, vsum)

Solution (Python):
n = int(input())
data = list(map(int,input().split()))

vmin = min(data)
vmax = max(data)
vsum = sum(data)

print(vmin, vmax, vsum)

Solution (Python):
n = int(input())
a = [int(x) for x in input().split()]
sum = 0
max = -1000000
min = 1000000
for i in a:
    sum += i
    if i > max:
        max = i
    if i < min:
        min = i
print(min,max,sum)

Solution (Python):
n = int(input())
data =input().split()
data =list(map(int, data))

max=min=data[0]
sum=0
for i in range(n):
    sum+=data[i]
    if data[i]>max:
        max=data[i]
    if data[i]<min:
        min=data[i]
print(min,max,sum)

Solution (Python):
n=int(input())
seisuu=list(map(int,input().split()))
print(min(seisuu),max(seisuu),sum(seisuu))

Solution (Python):
_ = int(input())
a = list(map(int, input().split()))
print(min(a), max(a), sum(a))

Solution (Python):
n = int(input())
li = [int(x) for x in list(input().split())]
print(min(li), max(li), sum(li))

Solution (Python):
n = int(input())
a = list(map(int,input().split()))
min = min(a)
max = max(a)
sum = sum(a)
print(min,max,sum)

Solution (Python):
s=int(input())
I=list(map(int, input().split()))
a=min(I)
b=max(I)
c=sum(I)
print(a, b, c)

Solution (Python):
n = int(input())
a = list(map(int, input().split()))
print(f"{min(a)} {max(a)} {sum(a)}")

Solution (Python):
N = int(input())
sum = 0
ls=list(map(int,input().split()))

for i in range(N):
    sum += ls[i]
ls.sort(reverse=True)
print(ls[-1],ls[0],sum)

Solution (Python):
N=int(input())
a=list(map(int,input().split()))
print(min(a),max(a),sum(a))

Solution (Python):
n = int(input())
max = -1000000
min = 1000000
sum = 0
x = input().split()
for i in range(0,n):
    c = int(x[i])
    if c < min:
        min = c
    if c > max:
        max = c
    sum += c
print(min,max,sum)

Solution (Python):
n = int(input())
N = list(map(int, input().split()))
print(min(N), max(N), sum(N))

Solution (Python):
n=int(input())
lst=list(map(int,input().split()))
a=min(lst)
b=max(lst)
c=sum(lst)
print(a,b,c)

Solution (Python):
p=int(input())
list1=list(range(p))
q=map(int,input().split())
list2=list(q)
list1=list2
min1=min(list1)
max1=max(list1)
sum1=sum(list1)
    
print(min1,max1,sum1)

Solution (Python):
n = int(input())
l = list(map(int, input().split()))
print(min(l), max(l), sum(l))

Solution (Python):
n = int(input())
a = list(map(int, input().split()))
print(min(a), max(a), sum(a))

Solution (Python):
n=int(input())
a=list(map(int,input().split()))
print(min(a),max(a),sum(a))

Solution (Python):
def resolve():
    n = int(input())
    nums = sorted(list(map(int, input().split())))

    print(nums[0], nums[-1], sum(nums))


resolve()

Solution (Python):
n = input()
A = list(map(int, input().split()))
print(min(A), max(A), sum(A))

Solution (Python):
n=int(input())
l=list(map(int,input().split()))
a=min(l)
b=max(l)
c=sum(l)

print(a,b,c)

Solution (Python):
count = int(input())
dataset = input().split(" ")

num = []
for i in range(len(dataset)):
    num.append(int(dataset[i]))

min = num[0]
max = num[0]
sum = 0

for n in num:
    if min > n:
        min = n
    if max < n:
        max = n
    sum += n

print("%d %d %d" % (min, max, sum))

Solution (Python):
n = int(input())
l = list(map(int, input().split()))
a = min(l)
b = max(l)
c = sum(l)
print(f'{a} {b} {c}')

Solution (Python):
a = int(input())
n = list(map(int,input().split()))
l = max(n)
s = min(n)
t = sum(n)
print(s,l,t)

Solution (Python):
n=int(input())
a=list(map(int,input().split()))
print(min(a),max(a),sum(a))

Solution (Python):
n = int(input())
lst = [int(i) for i in input().split()]
print(f'{min(lst)} {max(lst)} {sum(lst)}')

Solution (Python):
_ = input().strip()
l = [int(i) for i in input().strip().split()]

print(min(l),max(l),sum(l))

Solution (Python):
n=int(input())
a=list(map(int,input().split(' ')))

print(f"{min(a)} {max(a)} {sum(a)}")

Solution (Python):
M = 1000000000000
minNum = M
maxNum = -M
sumNum = 0
n = int(input())
numList = list(map(int, input().split()))
for x in numList:
    if x < minNum:
        minNum = x
    if x > maxNum:
        maxNum = x
    sumNum += x
print('%d %d %d' % (minNum, maxNum, sumNum))

Solution (Python):
n = int(input())
a = list(map(int, input().split(' ')))
print("{0} {1} {2}".format(min(list(map(int, a))), max(list(map(int, a))), sum(list(map(int, a)))))

Solution (Python):
n = int(input())
num = list(map(int, input().split()))
print(min(num), max(num), sum(num))

Solution (Python):

n = int(input())
a_list = list(map(int, input().split()[:n]))

print(min(a_list), max(a_list), sum(a_list))

Solution (Python):
from statistics import mean
a=int(input())
b=list(map(int,input().split()))
c=min(b)
d=sum(b)
e=max(b)
print("{} {} {}".format(c,e,d))

Solution (Python):
n = int(input())
a = list(map(int, input().split()))
a.sort()
print(str(a[0]) + ' ' + str(a[n-1]) + ' ' + str(sum(a)))

Solution (Python):
N=int(input())
array = list(map(int, input().strip().split()))
x=0
for i in range(N):
    x+=array[i]
print(f"{min(array)} {max(array)} {x}")

Solution (Python):
n = (input())
ns = input().split()
print(min(int(i) for i in ns),max(int(i) for i in ns),sum(int(i) for i in ns))

Solution (Python):
lens = int(input())
numbers = list(map(int, input().split()))
print(f"{min(numbers)} {max(numbers)} {sum(numbers)}")

Solution (Python):
n=int(input())
InpList = list(map(int, input().split()))

InpList=sorted(InpList)

print(InpList[0],InpList[n-1],sum(InpList))

Solution (Python):
n = int(input())

l = list(map(int, input().split()))

print(min(l), max(l), sum(l))

Solution (Python):
def mms() :
    n = int(input())
    r = list(map(int, input().split()))
    SUM = 0
        
    for i in range(n) :
        SUM += r[i]
        
    print(min(r), max(r), SUM)
    
mms()

Solution (Python):
n=int(input())
ns=input().split()
for i in range(len(ns)):
    ns[i]=int(ns[i])
asum=sum(ns)
amin=min(ns)
amax=max(ns)
print(amin, amax,asum)

Solution (Python):
n = input()
lst = list(map(int, input().split()))
print(min(lst), max(lst), sum(lst))

Solution (Python):
a=input()
A=list(map(int,input().split()))
print(min(A),max(A),sum(A))

Solution (Python):
n=int(input())
ai=list(map(int,input().split()))
print(min(ai),max(ai),sum(ai))

Solution (Python):
a = int(input())
s = input().split()
for b in range(a):
  s[b] = int(s[b])
print(min(s),max(s),sum(s))

Solution (Python):
n=input()
while True:
    try:
        x=list(map(int,input().split()))
        a=min(x)
        b=max(x)
        c=sum(x)
        print(a,b,c)
    except:
        break

Solution (Python):
n=int(input())
lst=list(map(int,input().split()))
print(min(lst),max(lst),sum(lst))

Solution (Python):
def sum(a, n):
    s = 0
    for i in range(int(n)):
        s += a[i]
    return s


n = input()
a = list(map(int, input().split()))
print(min(a), max(a), sum(a, n))

Solution (Python):
inp = []
i = 0
j = 0

min = 0
max = 0
sum = 0

n = int(input())
inp = list(map(int, input().split()))

for i in range(n):
    if i == 0:
        min = inp[i]
        max = inp[i]
        sum = inp[i]
    else:
        if min > inp[i]:
            min = inp[i]
        if max < inp[i]:
            max = inp[i]

        sum += inp[i]

print("%s %s %s" % (min, max, sum))

Solution (Python):
a = input()
b = list(map(int,input().split()))
print(min(b), max(b), sum(b))

Solution (Python):
n=int(input())
a=list(map(int,input().split()))
print(min(a),max(a),sum(a))

Solution (Python):
n = int(input())
a = [int(i) for i in input().split()]
print(min(a), max(a), sum(a))

Solution (Python):
n=int(input())
lst=[int(i) for i in input().split()]
a=min(lst)
b=max(lst)
c=sum(lst)

print(a,b,c)

Solution (Python):
a = input()
b = input()

numbers = b.split(" ")


print (min(int(i) for i in numbers),max(int(i) for i in numbers),sum(int(i) for i in numbers))

Solution (Python):
BIG_NUM = 2000000000

N = int(input())

table = list(map(int,input().split()))

maximum = -BIG_NUM
minimum = BIG_NUM
total = 0

for x in table:
    if maximum < x:
        maximum = x
    if minimum > x:
        minimum = x
    total += x
    
print("%d %d %d"%(minimum,maximum,total))

Solution (Python):
size = int(input())
a = list(map(int,input().split()))

tmpmax = a[0]
tmpmin = a[0]
tmpsum = 0
for i in range(size):
    if tmpmax < a[i]:
        tmpmax = a[i]
    if tmpmin > a[i]:
        tmpmin = a[i]
    tmpsum += a[i]
    
print(str(tmpmin) + " " + str(tmpmax) + " " + str(tmpsum))

Solution (Python):
n = input()
lst = list(map(int, input().split()))
print(min(lst), max(lst), sum(lst))

Solution (Python):


def main():
    numbers=[]
    n = int(input())
    numbers = list(map(int,input().split()))
    print("{} {} {}".format(min(numbers),max(numbers),sum(numbers)))


if __name__=="__main__":
    main()

Solution (Python):
n = int(input())
A = list(map(int, input().split()))

print("{} {} {}".format(min(A), max(A), sum(A)))

Solution (Python):
n = int(input())
data = list(map(int, input().split()))

vmin = min(data)
vmax = max(data)
vsum = sum(data)

print(vmin, vmax, vsum)

Solution (Python):
n = int(input())
a = list(map(int, input().split()))
max = a[0]
min = a[0]
sum = 0
for i in a:
    if i > max:
        max = i
    elif i < min:
        min = i
    sum += i
print(min, max, sum)

Solution (Python):
n=int(input())
ns=input().split()
for i in range(len(ns)):
	ns[i]=int(ns[i])
asum=sum(ns)
amin=min(ns)
amax=max(ns)
print(amin,amax,asum)

Solution (Python):
a = int(input())
lista = input().split()
maxval = -1000000
minval = 1000000
total = 0
for i in range(a):
    if int(lista[i]) > maxval:
        maxval = int(lista[i])
    if int(lista[i]) < minval:
        minval = int(lista[i])
    total += int(lista[i])
print(minval, maxval, total)

Solution (Python):
n = int(input())
a = list(map(int,input().split()))
print(str(min(a))+" "+str(max(a))+" "+str(sum(a)))

Solution (Python):
n=input()
A= list(map(int, input().split()))
print(min(A),max(A), sum(A))

Solution (Python):
n=input()
A=list(map(int,input().split()))
print(min(A),max(A),sum(A))

Solution (Python):
n=input()
A = list(map(int, input().split()))
print(min(A),max(A),sum(A))

Solution (Python):
n=int(input())
A=list(map(int,input().split()))
print(min(A),max(A),sum(A))

Solution (Python):
n=input()
A=list(map(int,input().split()))
print(min(A),max(A),sum(A))

Solution (Python):
n=int(input())
A=list(map(int,input().split()))
print(min(A),max(A),sum(A))

Solution (Python):
n=int(input())
A=list(map(int,input().split()))
a=min(A)
b=max(A)
c=sum(A)
print(a,b,c)

Solution (Python):
N=int(input())
A = list(map(int, input().split()))
a = min(A)
b = max(A)   
c = sum(A) 
print(a,b,c)

Solution (Python):
n = input()
A = list(map(int, input().split())) 
print(min(A),max(A),sum(A))

Solution (Python):
n=int(input())
li = list(map(int,input().split()))
li.sort()
print(li[0],li[-1],sum(li))

Solution (Python):
n = input()
lst = list(map(int, input().split()))
print(min(lst), max(lst), sum(lst))

Solution (Python):
n = int(input())
x = list(map(int, input().split()))
print("{} {} {}".format(min(x), max(x), sum(x)))

Solution (Python):
d=input()
a=list(map(int,input().split()))
print(min(a),max(a),sum(a))

Solution (Python):
n = int(input())
a = list(map(int, input().split()))
print(min(a), max(a), sum(a))

Solution (Python):
n = int(input())
a_list  = list(map(int,input().split()[:n]))

print(min(a_list),max(a_list),sum(a_list))

Solution (Python):
numCoun = map(int,input().split())
numList = list(map(int,input().split()))

sumA =sum(numList)
minA = min(numList)
maxB = max(numList)

print(minA,maxB,sumA)

Solution (Python):
n = int(input())
a = list(map(int,input().split()))
print(min(a),max(a),sum(a))

Solution (Python):
n = int(input())
lista = list(map(int,input().split()))
a = min(lista)
b = max(lista)
c = sum(lista)
print(a, b, c)

Solution (Python):
n = int(input())
a_list = list(map(int, input().split()))


a = min(a_list)
b = max(a_list)
c = sum(a_list)
print(a, b, c)

Solution (Python):
n=int(input())
ns=input().split()
for i in range(len(ns)):
	ns[i]=int(ns[i])
asum=sum(ns)
amin=min(ns)
amax=max(ns)
print(amin,amax,asum)

Solution (Python):
n = input()
lst = list(map(int, input().split()))
print(min(lst), max(lst), sum(lst))

Solution (Python):
N=int(input())
a=list(map(int,input().split()))
print(min(a),max(a),sum(a))

Solution (Python):
n = int(input())
num_list = list(map(int, input().split()))
print(min(num_list), max(num_list), sum(num_list))

Solution (Python):
n=int(input())
lis=list(map(int,input().split()))

print(min(lis),max(lis),sum(lis))

Solution (Python):

n=input()
list=[i for i in map(int, input().split())]
print(min(list),max(list),sum(list))

Solution (Python):
n=int(input())
a=list(map(int,input().split()))
a.sort()
print(f'{a[0]} {a[-1]} {sum(a)}')

Solution (Python):
int(input())
b=list(map(int, input().split()))
print(min(b),max(b),sum(b))

Solution (Python):
n=int(input())
ai=list(map(int,input().split()))
print(min(ai),max(ai),sum(ai))

Solution (Python):
x = input()
a = list(map(int,input().split()))
print(min(a), max(a), sum(a))

Solution (Python):
n = int(input())
a = list(map(int, input().split()))
print(min(a),max(a),sum(a))

Solution (Python):
n=int(input())
a=list(map(int,input().split()))
bignam= -1000001
smolnam=10000001
total=0
for x in a:
    if bignam<x:
        bignam=x
    if smolnam>x:
        smolnam=x
    total+=x
print(smolnam,bignam,total)

Solution (Python):
n = input()
list_num = [int(num) for num in input().split()]
print(min(list_num),max(list_num),sum(list_num))

Solution (Python):


n = int(input())
list = input().split()
min = 1000001; max = -1000001; add = 0

i = 0
while i < n:
    if min > int(list[i]):
        min = int(list[i])
    if max < int(list[i]):
        max = int(list[i])
    add = add + int(list[i])
    i += 1

print(min, max, add)

Solution (Python):
x=input()
n=list(map(int,input().split()))
print(min(n),max(n),sum(n))

Solution (Python):
n = int(input())
num_lst = list(map(int, input().split()))
a = min(num_lst)
b = max(num_lst)
c = sum(num_lst)
print(a,b,c)

Solution (Python):
n = int(input())
lst = list(map(int,input().split()))

a = min(lst)
b = max(lst)
c = sum(lst)
print(a,b,c)

Solution (Python):
n=int(input())
A=list(map(int, input().split()))
print(min(A),max(A),sum(A))

Solution (Python):
n = input()
list_a = list(map(int, input().split()))
print(min(list_a), max(list_a), sum(list_a))

Solution (Python):
N=int(input())
n=list(map(int,input().split()))
print(min(n),max(n),sum(n))

Solution (Python):
N=int(input())
a=list(map(int,input().split()))
print(min(a),max(a),sum(a))

Solution (Python):
n=int(input())
ai=list(map(int,input().split()))
a=min(ai)
b=max(ai)
c=sum(ai)
print(a,b,c)

Solution (Python):
n=int(input())
x =list(map(int,input().split()))
mn=x[0]
mx=x[0]
sum=x[0]
for i in range(1,n):
    mn=min(mn,x[i])
    mx=max(mx,x[i])
    sum+=x[i]
    
print(mn,mx,sum)

Solution (Python):
n = int(input())
n_list = list(map(int,input().split()))

a = min(n_list)
b = max(n_list)
c = sum(n_list)

print(a,b,c)

Solution (Python):
n=int(input())
list1=[0]*n

list1=list(map(int, input().split()))
print(min(list1),max(list1),sum(list1))

Solution (Python):
num = int(input())

box = list(map(int, input().split(' ')))
box.sort(reverse = True)

print('{} {} {}'.format(box[-1], box[0], sum(box)))

Solution (Python):
n = int(input())
a = list(map(int, input().split()))

print(min(a), max(a), sum(a))

Solution (Python):
n=int(input())
k=list(map(int, input().split()))
a=min(k)
b=max(k)
c=sum(k)
print(a,b,c)

Solution (Python):
i=0
N=int(input())
I=list(map(int,input().split()))

    
print(min(I),max(I),sum(I))

Solution (Python):
def main():
  n = int(input())
  A = [int(_) for _ in input().split()]
  m, M, s = 10 ** 8, -10 ** 8, 0
  for a in A:
    m = min(m, a)
    M = max(M, a)
    s += a
  print(m, M, s)
  return

if __name__ == '__main__':
  main()

Solution (Python):
N = int(input())
A = [int(n) for n in input().split()]
print(min(A), max(A), sum(A))

Solution (Python):
n = int(input())
a = list(map(int,input().split()))

print(min(a),max(a),sum(a))

Solution (Python):
n = input()
a = list(map(int,input().split()))
print(min(a) , max(a) , sum(a))

Solution (Python):
n = int(input())
x = list(map(int, input().split()))

print(min(x), max(x), sum(x))

Solution (Python):


ct = int(input().strip())
num_list = [int(x) for x in input().strip().split()]

mi = min(num_list)
ma = max(num_list)
su = sum(num_list)

print(str(mi) + " " + str(ma) + " " + str(su))

Solution (Python):



n = int(input())
l = list(map(int, input().split()))

print(min(l), max(l), sum(l))

Solution (Python):
n = int(input())
l = list(map(int, input().split()))

min = min(l)
max = max(l)
sum = sum(l)

print(f"{min} {max} {sum}")

Solution (Python):
a = int(input())
nums = list(map(int, input().split()))
print(min(nums), max(nums), sum(nums))

Solution (Python):
n = int(input())
a_list = list(map(int, input().split()[:n]))
ma = max(a_list)
mi = min(a_list)
su = sum(a_list)
print('{} {} {}'.format(mi,ma,su))

Solution (Python):
n = input()

nums = [int(num) for num in input().split()]

print(min(nums), max(nums), sum(nums))

Solution (Python):


x=input()

list=list(map(int,input().split()))

a=min(list)
b=max(list)
c=sum(list)

print(a,b,c)

Solution (Python):
n=int(input())
ai=list(map(int,input().split()))

a=min(ai)
b=max(ai)
c=sum(ai)

print(a,b,c)

Solution (Python):
n=int(input())
nlist = list(map(int,input().split()))

a = min(nlist)
b = max(nlist) 
c = sum(nlist)
print(a,b,c)

Solution (Python):
k = input()
i = list(map(int,input().split()))
print(min(i),max(i),sum(i))

Solution (Python):
n=int(input())
a=list(map(int,input().split()))
print(min(a),max(a),sum(a))

Solution (Python):
_ = input()
lst = list(map(int, input().split()))
print(min(lst), max(lst), sum(lst))

Solution (Python):
n=int(input())
a=list(map(int,input().split()))
print(min(a),max(a),sum(a))

Solution (Python):
a=int(input())
lst = list(map(int,input().split()))
b=min(lst)
c=max(lst)
d=sum(lst)

print(b,c,d)

Solution (Python):
n=int(input())
lst=list(map(int,input().split()))
a=min(lst)
b=max(lst)
c=sum(lst)
print(a,b,c)

Solution (Python):
n = int(input())
lst = list(map(int,input().split()))
a = min(lst)
b = max(lst)
c = sum(lst)
print(a, b, c)

Solution (Python):
n=int(input())
t=list(map(int,input().split()))
a=min(t)
b=max(t)
c=sum(t)
print(a,b,c)

Solution (Python):
n = int(input())
a = list(map(int, input().split()))

min = 1e9
max = -1e9
sum = 0
for i in range(len(a)):
    if a[i] > max:
        max = a[i]

    if a[i] < min:
        min = a[i]

    sum += a[i]
print(min, max, sum)

Solution (Python):
num=int(input())
a=list(map(int,input().split()))
print(min(a),max(a),sum(a))

Solution (Python):
def sum(l):
    sum = 0
    for i in l:
        sum += i
    return sum

n = int(input())
l = sorted(map(int, input().split())) 
s = sum(l)
print(l[0], l[-1], s)

Solution (Python):
BIG_NUM = 2000000000

N = int(input())

table = list(map(int,input().split()))

maximum = -BIG_NUM
minimum = BIG_NUM
total = 0

for x in table:
    if maximum < x:
        maximum = x
    if minimum > x:
        minimum = x
    total += x

print("%d %d %d"%(minimum,maximum,total))

Solution (Python):
n=int(input())
a=list(map(int,input().split()))
print(min(a),max(a),sum(a))

Solution (Python):
_ = input()
l = list(map(int, input().split()))

a = min(l)
b = max(l)
s = sum(l)

print("{} {} {}".format(a, b, s))

Solution (Python):
n = int(input())
data = list(map(int, input().split()))
print(min(data), max(data), sum(data))

Solution (Python):

n=int(input())
ai=list(map(int,input().split()))
0<n<=10000 
n=len(ai)
a=min(ai)
b=max(ai)
c=sum(ai)
print(a,b,c)

Solution (Python):
n = int(input())
l = list(map(int, input().split()))
print(min(l),max(l),sum(l))

Solution (Python):
n = input()
a = list(map(int,input().split()))

print(min(a),max(a),sum(a))

Solution (Python):
BIG_NUM = 2000000000
N = int(input())

table = list(map(int,input().split()))

maximum = -BIG_NUM
minimum = BIG_NUM
total = 0

for x in table:
    if maximum < x:
        maximum = x
    if minimum > x:
        minimum = x
    total += x

print("%d %d %d"%(minimum,maximum,total))

Solution (Python):
n = int(input())
l = list(map(int, input().split()))
print(min(l), max(l), sum(l))