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):
a = input()
b = list(map(int,input().split()))
print(min(b),max(b),end=" ")
taiga = 0
for i in b :
    taiga += i
print(taiga)

Solution (Python):
import sys
from itertools import combinations
import math


def I(): return int(sys.stdin.readline().rstrip())


def LI(): return list(map(int, sys.stdin.readline().rstrip().split()))


def S(): return sys.stdin.readline().rstrip()


def LS(): return list(sys.stdin.readline().rstrip().split())


n = I()
s = LI()

s.sort()
print(s[0], s[-1], sum(s))

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

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

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

a.sort()

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

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

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


min=min(a)

max=max(a)
    
sum=sum(a)

print(str(min)+' '+str(max)+' '+str(sum))

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

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

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

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

Solution (Python):
n=int(input())
x=[int(i) for i in input().split()]

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

Solution (Python):
x=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())
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())

a = list(map(int,input().split()))
min_a = min(a)
max_a = max(a)
sum_a = sum(a)
print(min_a, max_a, sum_a)

Solution (Python):
N = int(input())
nums = sorted(map(int, input().split()))
print(nums[0], nums[N - 1], sum(nums))

Solution (Python):

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

 



 
  
   
    
    


x = min(a)
y = max(a)
z = sum(a)
print(x,end=' ')
print(y,end=' ')
print(z)

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

Solution (Python):
input()

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

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

Solution (Python):
n = int(input())
list_num = [int(_) for _ in input().split(" ")]

min_num = min(list_num)
max_num = max(list_num)
sum_num = sum(list_num)

print(f"{min_num} {max_num} {sum_num}")

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

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

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

data = list(map(int, input().split()))
if n == len(data):
    print("{} {} {}".format(min(data), max(data), sum(data)))
else:
    print("error")

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())
alist = list(map(int,input().split(" ")))
alist.sort()
amin = alist[0]
amax = alist[n-1]
asum = sum(alist)
print(amin,amax,asum)

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

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

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

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

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

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

Solution (Python):
import sys

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

Solution (Python):
a = int(input())
b = list(map(int, input().split(' ')))
mx = max(b)
mn = min(b)
t = 0
for i in b:
    t = t + i
print(mn,mx,t)

Solution (Python):
N = int(input())
a = [int(x) for x in input().split()]
print(str(min(a)) + ' ' + str(max(a)) + ' ' + str(sum(a)))

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

x = min(b)
y = max(b)
z = sum(b)

print('{} {} {}'.format(x,y,z))

Solution (Python):
n=int(input())
x=input().split()
for i in range(n):
    x[i]=int(x[i])
a=max(x)
b=min(x)
sum=0
for j in range(n):
    sum+=int(x[j])
    j+=1
print(b,a,sum)

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

print("{} {} {}".format(a[0],a[-1],sum(a)))

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

print(min(array), max(array), sum(array))

Solution (Python):
N = int(input())
a = list(int(i) for i in input().split())
print(f'{min(a)} {max(a)} {sum(a)}')

Solution (Python):
import sys

input = sys.stdin.readline

def main():
    a = int(input())
    s = list(map(int, input().split()))
    s.sort()
    
    print(s[0], s[a-1], sum(s))
    
    
if __name__ == "__main__":
    main()

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

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

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

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

a = min(nums)

b = max(nums)

c = sum(nums)

print("{0} {1} {2}".format(a,b,c))

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

Solution (Python):
x=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())
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):
a = int(input())
b = list(map(int,input().split()))

bmin = min(b)
bmax = max(b)
bsum = sum(b)

print(bmin, bmax, bsum)

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

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

print(min(a),end=' ')
print(max(a),end=' ')
x=0
for i in range(n):
    x+=a[i]
print(x)

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

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

i=0
j=0
z=0

for i in range(x):
    z+=s[i]



print(min(s),max(s),z)

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):
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=input()

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

print(min(ls),max(ls),sum(ls))

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

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()))

max = a[0]
min = a[0]
sum = a[0]

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

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

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

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

max_num = max(num_list)
min_num = min(num_list)
sum_num = sum(num_list)
print(min_num, max_num, sum_num)

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

ans = [min(A), max(A), sum(A)]
print(*ans)

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

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("{} {} {}".format(min(a), max(a), sum(a)))

Solution (Python):
i=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 = int(input())
x = list(map(int,input().split()))

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

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

mn = min(L)
mx = max(L)
sm = sum(L)

print(mn,mx,sm)

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

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

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

Solution (Python):
n = int(input())
a = list(map(int, input().split()))
a.sort()
m = 0
for i in a:
    m += i
print(a[0],a[-1],m)

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

Solution (Python):
x = int(input())
lst=[]
x=len(lst)
lst = list(map(int,input().split()))
print(min(lst),max(lst),sum(lst),sep=" ")

Solution (Python):
n=int(input())
a=list(map(int,input().split()))
a.sort()
sum=0
for i in range(n):
    sum+=a[i]
print(f'{a[0]} {a[i]} {sum}')

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):
n = 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())
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())
data = list(map(int,input().split()))
a = min(data)
b = max(data)
c = sum(data)

print(a, b, c)

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

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

ma = -1000000
mi = 1000000
t = 0

for i in a:
        if ma < i:
                ma = i

        if mi > i:
                mi = i

        t += i

print (mi, ma, t)

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())
num_list=list(map(int,input().split()))
print(min(num_list),max(num_list),sum(num_list))

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

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

l = [int(i) for i in input().split()]

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

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

Solution (Python):
n = int(input())
ai = map(int, input().split())
max = -9999999
min = 9999999
sum = 0
for i in ai:
    if i > max:
        max = i
    if i < min:
        min = i
    sum += i

print(min, max, sum)

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

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

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

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

min = min(x)
max = max(x)
sum = sum(x)

print(min, max, sum)

Solution (Python):
n=int(input())
tensu=[None]*n
tensu=list(map(int,input().split()))
total=0
for i in range(n):
    total+=tensu[i]
a=tensu[0]
i=0
while i<n:
    if a>tensu[i]:
        a=tensu[i]
        i+=1
    else:
        i+=1
b=tensu[0]
i=0
while i<n:
    if b<tensu[i]:
        b=tensu[i]
        i+=1
    else:
        i+=1
print(str(a)+' '+str(b)+' '+format(total))

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

n = int(input())
list1 = list(map(int, input().split()))
max_result = max(list1)
min_result = min(list1)
sum_result = sum(list1)

print(min_result, max_result, sum_result)

Solution (Python):
n = int(input())
line=input()
a=[]
t = line.split(" ")
for i in range(0,n):
    a.append(int(t[i]))
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 = 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):
input()
nums = list(map(int, input().split()))
a = min(nums)
b = max(nums)
c = sum(nums)
print(a, b, c)

Solution (Python):



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


print(min(A),max(A),sum(A))

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

M = max(table)
m = min(table)
s = sum(table)

print(m,M,s)

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

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

a, b, c = calculate()
print(a, b, c)

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())
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())
data = list(map(int,input().split()))
a = min(data)
b = max(data)
c = sum(data)
print(a, b, c)

Solution (Python):
n = int(input())
a = [int(x) for x in 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())
a =list(map(int,input().split()))
s=0
for i in range(n):
    s+=a[i]
m=min(a)
M=max(a)
print(m,M,s)

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

print(min(data), max(data),sum(data))

Solution (Python):
def min_max_sum(a):
    return min(a), max(a), sum(a)


if __name__ == '__main__':
    n = int(input())
    input_list = list(map(int, input().split()))
    ans1, ans2, ans3 = min_max_sum(input_list)
    print(ans1, ans2, ans3)

Solution (Python):
_ = input()
var = input()
array = list(map(int,var.split()))
print('{} {} {}'.format(min(array),max(array),sum(array)))

Solution (Python):
n = int(input())
list = [int(a) for a in input().split()]

m = min(list)
M = max(list)

S = 0
for i in range(n):
    S = S + list[i]

print(m, M, S)

Solution (Python):
n  = int(input())
data  = list(int(i) for i in input().split())
data_min = min(data)
data_max = max(data)
data_sum = sum(data)
print(data_min,data_max,data_sum)

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

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

Solution (Python):
x=int(input())
num=list(map(int,input().split()))
y=sorted(num)
s=y[0]
t=y[(x-1)]
u=sum(num)
print(s,t,u)

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

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

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

data_max = max(data)
data_min = min(data)
data_sum = sum(data)

print(data_min, data_max, data_sum)

Solution (Python):
x=input()
lst = input().split()
i=0
while i<int(x) :
    lst[i]=int(lst[i])
    i=i+1
a = min(lst)  
b = max(lst)   
c = sum(lst) 
print(a,b,c)

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

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

Solution (Python):
N = int(input())
a = [int(x) for x in input().split()]

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

Solution (Python):
n=int(raw_input())
a=map(int,raw_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):
n = int(input())
a = list(map(int, input().split()))
print(min(a), max(a), sum(a))

Solution (Python):
import math

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

print(min(table), max(table), sum(table))

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

x=[int(i) for i in x]
    
print(min(x), max(x), sum(x))

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

max = a[0]
min = a[0]
sum_a = 0

for i in a:
    sum_a += i
    if max < i:
        max = i
    if min > i:
        min = i
        
print('{} {} {}'.format(min, max, sum_a))

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

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())
x=[int(i) for i in 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()))

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

Solution (Python):


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

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

print(nmin,nmax,nsum)

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

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

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

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

i=0
max=a[0]
min=a[0]
sum=0
while i<=n-1:
    if max<a[i]:
        max=a[i]
    
    if min>a[i]:
        min=a[i]
    
    sum+=a[i]
    i+=1
    
print(min, max, sum)

Solution (Python):



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

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

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

Solution (Python):
_ = int(input())
args = [int(arg) for arg in input().split()]
print(str(min(args)), str(max(args)), str(sum(args)))

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()))
min=1000000
max=-1000000
sum=0
for i in a:
    if i<min:
        min=i
    if max<i:
        max=i
    sum+=i
print(min,max,sum)

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

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

Solution (Python):
def test_case():
    n = int(input())
    n_list = list(map(int, input().split()))
    n_min, n_max, n_sum = 0, 0, 0
    for i in range(n):
        if n_min == 0:
            n_min = n_list[i]
        elif n_min > n_list[i]:
            n_min = n_list[i]

        if n_max == 0:
            n_max = n_list[i]
        elif n_max < n_list[i]:
            n_max = n_list[i]

        n_sum += n_list[i]
    print(n_min, n_max, n_sum)


if __name__ == "__main__":
    test_case()

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

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

print(str(min(list)) + ' ', end='')
print(str(max(list)) + ' ', end='')
print(str(sum(list)))

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

maxv = max(li)
minv = min(li)
sumv = sum(li)

print(minv,maxv,sumv)

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())
lis = list(map(int, input().split()))

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

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

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

Solution (Python):
input_num = int(input())
input_list = list(map(int, input().split()))
print('{} {} {}'.format(min(input_list), max(input_list), sum(input_list)))

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

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

Solution (Python):
n = int(input())
ns = list(map(int, input().split()))
nmax = max(ns)
nmin = min(ns)
nsum = sum(ns)
print("%d %d %d" %(nmin, nmax, nsum))

Solution (Python):
def main():
    n = int(input())
    l = [int(e) for e in input().split()]
    print(min(l), max(l), sum(l))


if __name__ == "__main__":
    main()

Solution (Python):
n = input()
a = input().split()
b = [int(each) for each in a]

print('{} {} {}'.format(min(b),max(b),sum(b)))

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

lis.sort()
print(lis[0], lis[n-1], sum(lis))

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

Solution (Python):
x = input()


def f(x):
    t = list(map(int, input().split()))
    return f'{min(t)} {max(t)} {sum(t)}'


u = f(x)
print(u)

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

Solution (Python):
sum_value = 0
max_value = 0
min_value = 0
count = 0
while True:
    count += 1
    if count == 1:
        n = int(input())
    if count == 2:
        a = map(int, input().split())
        for i, item in enumerate(a):
            if i == 0:
                max_value, min_value = item, item
            sum_value += item
            if max_value < item : max_value = item
            if min_value > item : min_value = item
        print (f'{min_value} {max_value} {sum_value}')
        break

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

Solution (Python):
def main():
    _ = int(input())
    nums = list(map(int, input().split()))
    a = min(nums)
    b = max(nums)
    c = sum(nums)
    print(f"{a} {b} {c}")
    return 0


if __name__ == "__main__":
    main()

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 = min(a)
a_max = max(a)
a_sum = sum(a)

print(a_min,a_max,a_sum)

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

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

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

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

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

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

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

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

print(min(Inlist), max(Inlist), sum(Inlist), sep=' ')

Solution (Python):
N=input()

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

print(min(res),max(res),sum(res))

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

tmax=max(table)
tmin=min(table)
tsum=sum(table)

print(tmin,tmax,tsum)

Solution (Python):
_ = input()

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

print(min(seq), max(seq), sum(seq))

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

print(min(list_), max(list_), sum(list_))

Solution (Python):
_ = 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()))
x=max(a)
y=min(a)
z=sum(a)
print(y,x,z)

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

sum = 0
for i in range(n):
  sum += a[i]

a.sort()

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

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

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())
ain = [0]* n
ain = map(int, input().split())
a = list(ain)         
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())
s=list(map(int,input().split()))
s=sorted(s)
print(str(s[0])+" "+str(s[-1])+" "+str(sum(s)))

Solution (Python):
def min_max_sum(a_list):
    return min(a_list), max(a_list), sum(a_list)


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

min, max, sum = min_max_sum(a_list)

print(min, max, sum)

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

sum=0
for i in range(len(num_list)):
    sum+=num_list[i]

print(min(num_list), max(num_list), sum)

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

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

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

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

print(min(lst), max(lst), sum(lst))

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

print(min(Lists),end=" ")
print(max(Lists),end=" ")
print(sum(Lists))

Solution (Python):
n = int(input())
a = list(map(int, input().split()))
print('{0} {1} {2}'.format(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):
n = int(input())
x = list(map(int,input().split()))
x.sort()
print(x[0],x[n-1],sum(x))

Solution (Python):
n = int(input())
A = [int(a) for a in input().split()]

print(min(A), max(A), sum(A))

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

BIG_N = 200000000000
total = 0
maximum = -BIG_N
minimum = BIG_N

for i in table:
    if i > maximum:
        maximum = i
    if i < minimum:
        minimum = i
    total += i
    
print(f"{minimum} {maximum} {total}")

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





print(min(arr), max(arr), sum(arr))

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

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

seq = list(map(int, input().split()))
seq = seq[:n]
minimum =  min(seq)
maximum = max(seq)
total = sum(seq)

print (minimum, maximum, total)

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

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

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

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

print('{} {} {}'.format(min(nl), max(nl), sum(nl)))

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.sort()
print(A[0],A[n-1],sum(A))

Solution (Python):
n = int(input())
l = list(map(int, input().split()))
i = 0
min = 10000000
max = -10000000
sum = 0
while i<n:
    if l[i] <= min: min = l[i]
    if l[i] >= max: max = l[i]
    sum = sum + l[i]
    i +=1
print("{0} {1} {2}".format(min, max, sum))

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

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

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

Solution (Python):
s = 0
kei = 0
i = input()
iline = []
iline = input().split(" ")
ilinei = [int(a) for a in iline]
ilinei.sort()
for s in range(int(i)):
    kei = kei + int(ilinei[s])
s = int(i) - 1
print(str(ilinei[0]) + " " + str(ilinei[s]) + " " + str(kei))

Solution (Python):
n = input()
l = input().split()
l = list(map(int, l))
a = min(l)   
b = max(l)   
c = sum(l)   
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 = int(input())

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

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

print(c , a, b)

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

print(min(A),max(A),sum(A))

Solution (Python):
n = int(input())
li = input().split()

for i in range(n):
    li[i] = int(li[i])

print(min(li),max(li),sum(li))

Solution (Python):
n = int(input())
num = list(map(int,input().split()))
mini=num[0]
max=num[0]
sum=0

for i in range(n):
    if num[i]<mini:
        mini=num[i]
    if num[i]>max:
        max=num[i]
    sum+=num[i]
print(mini,max,sum)

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

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


print(min(numbers_list),max(numbers_list),sum(numbers_list))

Solution (Python):
N = int(input())
A = [int(a) for a in 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):
input()
input_list = list(map(int, input().split()))
print(min(input_list), max(input_list), sum(input_list))

Solution (Python):
base_num = input("")
base_line = input("")
term = base_line.split(' ')

last_num = int(base_num)-1
sum_num = 0
list_num = list()
for n in term:
    sum_num += int(n)
    list_num.append(int(n))

list_num.sort()

print("{} {} {}".format(list_num[0], list_num[last_num], sum_num))

Solution (Python):
n = int(input())
a = list(map(int,input().split()))
mn = a[0]
mx = a[0]
sm = 0
for i in a:
    if mn > i:
        mn = i
    if mx < i:
        mx = i
    sm += i
print(mn,mx,sm)

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

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

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

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


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

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

print(vmin, vmax, vsum)

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

print(min, max, sum)

Solution (Python):



num = int(input())
list = list(map(int,input().split()))
a = min(list)
b=max(list)
c=sum(list)
print(str(a)+" "+str(b)+" "+str(c))

Solution (Python):
a=int(input())
num=sorted(list(map(int,input().split())))
z=0
for i in range(a):
    z+=num[i]
print(num[0],num[-1],z)

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

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