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):
import sys


def main():
    sys.stdin.readline()
    list1 = [int(i) for i in sys.stdin.readline().split()]
    print(min(list1), max(list1), sum(list1))


if __name__ == '__main__':
    main()

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

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

Solution (Python):
i = input()
a = input().split()
c = a[0]
d = a[0]
for j in range(int(i)):
    if int(c) > int(a[j]):
        c = int(a[j])

                
for j in range(int(i)):
    if int(d) < int(a[j]):
        d = int(a[j])

e = sum(int(o) for o in a)

print('{0} {1} {2}'.format(int(c),int(d),int(e)))

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

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

max = line[0]
min = line[0]
sum = line[0]

for i in range(1, n):
    if max < line[i]:
        max = line[i]
    elif min > line[i]:
        min = line[i]
    sum += line[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 = input()
n = int(n)
seq = input().split()
sumNum = 0
minNum = 1000000
maxNum = -1000000
for numT in seq:
 num = int(numT)
 if(num > maxNum):
  maxNum = num
 if(num < minNum):
  minNum = num
 sumNum+=num
print(minNum,maxNum,sumNum)

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

Solution (Python):
b = input()
a = input().split()
for i in range(len(a)):
    a[i] = int(a[i])
max_a = max(a)
min_a = min(a)
Sum = sum(a)
print(min_a,max_a,Sum)

Solution (Python):
n = int(input())
num = [int(i) for i in input().split()]
print("{0} {1} {2}".format(min(num),max(num),sum(num)))

Solution (Python):
n = int(input())
num = [int(i) for i in input().split()]
print("{0} {1} {2}".format(min(num),max(num),sum(num)))

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

Solution (Python):

n = int(input())
a = map(int, input().split())
max = -1000000
min = 1000000
sum = 0
for num in a:
    if max <= num:
        max = num
    if min >= num:
        min = num
    sum += num
print (min, max, sum)

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

ans = []
ans.append(min(a))
ans.append(max(a))
ans.append(sum(a))

print(" ".join(map(str, ans)))

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

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

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

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

count = 0
max = 0
sum = 0

for i in array:
    if count == 0:
        min = i
        max = i
        count += 1
    sum = sum + i
    if i < min:
        min = i
    if max < i:
        max = i

print(min, max, sum)

Solution (Python):
n = int(input())
nums = [int(i) for i in input().split(' ')]
nums_sorted = sorted(nums)
min = nums_sorted[0]
max = nums_sorted[n - 1]
print(min, max, sum(nums_sorted))

Solution (Python):
sum = 0
n = input()
num = sorted(list(map(int, input().split())))
for i in range(int(n)):
    sum += num[i]
print("{} {} {}".format(num[0], num[-1], sum))

Solution (Python):





import math
N=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()))
mn = a[0]
mx = a[0]
sum = a[0]
for i in range(1, n):
	mn = min(mn, a[i])
	mx = max(mx, a[i])
	sum += a[i]
print(mn, mx, sum)

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

Solution (Python):
_,*A=map(int,open(0).read().split());print(*[f(A)for f in[min, max, sum]])

Solution (Python):
s=input()
l=input().split()
m=[int(i) for i in l]
print("{} {} {}".format(min(m),max(m),sum(m)))

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

Solution (Python):
n = int(input())
lis = list(map(int, input().split(" ")))
big_num = 1000000
max_num, min_num, sum = -1*big_num, big_num, 0
for i in lis:
    if i > max_num:
        max_num = i
    if i < min_num:
        min_num = i
    sum += i
print("%d %d %d" % (min_num, max_num, sum))

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

Solution (Python):
n = int(input())
a = list(map(int, input().split()))
print(min(a), end=' ')
print(max(a), end=' ')
print(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())
a = [int(i) for i in 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())

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

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

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

Solution (Python):
import sys,math,collections

def solve():
    n = int(input())
    L = list(map(int,input().split()))
    L.sort()
    print(L[0],L[-1],sum(L))
    
solve()

Solution (Python):
import sys
_ = sys.stdin.readline()
x=sys.stdin.readline()

arr=x.split()

arrInt=list()

for i in arr:
   
    arrInt.append(int(i))


print(min(arrInt),max(arrInt),sum(arrInt))

Solution (Python):


n=int(input())
sum=0
min=1000001
max=-1000001
table=list(map(int,input().split(" ")))
for i in table:
    sum+=i
    if max<i:
        max=i
    if min>i:
        min=i

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

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

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

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

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

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

print(data_min, data_max, data_sum)

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

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

Solution (Python):
from sys import stdin

n = int(stdin.readline().rstrip())
ai = [int(x) for x in stdin.readline().rstrip().split()]
ai.sort()
print("%d %d %d" % (ai[0], ai[n-1], sum(ai)))

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

Solution (Python):
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):
num = int(input())
inData = [0] * num
inData = [int(i) for i in input().split()]
minVal = min(inData)
maxVal = max(inData)
sumVal = sum(inData)

print(minVal, maxVal, sumVal)

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

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

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

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

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

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

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

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

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

l = list(map(int, input().split()))
Max = l[0]
Min = l[0]
sum = 0
for i in range(0,n):
	sum += l[i]
	a = l[i]
	if a > Max:
		a,Max = Max,a
	if  a < Min:
		a,Min = Min,a
	
	
print(f"{Min} {Max} {sum}")

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

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

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

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

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

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

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("%d %d %d" %(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 = input().split()
li = [int(i) for i in a]
s = min(li)
l = max(li)
p = sum(li)
print(s,l,p)

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

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

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

data.sort()

min = data[0]
max = data[-1]
avg = 0

for tmp in data:
	avg += tmp

print(min,max,avg)

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

min = data[0]
max = data[0]
avg = 0

for tmp in data:
	if tmp < min:
		min = tmp
	if tmp > max:
		max = tmp
	avg += tmp

print(min,max,avg)

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

data.sort()

min = data[0]
max = data[-1]
avg = 0

for tmp in data:
        avg += tmp

print(min,max,avg)

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

min = data[0]
max = data[0]
avg = 0

for tmp in data:
        avg += tmp
        if tmp < min:
        	min = tmp
        if tmp > max:
        	max = tmp

print(min,max,avg)

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

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

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

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

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

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

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

Solution (Python):
num = int(input())
inVal = input().split()
sum = 0
result = []
for n in range(num):
    result.append(int(inVal[n]))
    sum = sum + int(inVal[n])
print(str(min(result)) + " " + str(max(result)) + " " + str(sum))

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

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

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

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

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

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

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()))
print(min(l), max(l), sum(l))

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

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

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

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

mini = min(l)
maxi = max(l)
sums = 0

for i in range(0,n):
    sums = sums + int(l[i])
    
print(f"{mini} {maxi} {sums}")

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(input())
x = [int(v) for v in input().split()]
print(min(x), max(x), sum(x))

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

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

print("{:d} {:d} {:d}".format(min(a_list),max(a_list),sum(a_list)))

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

Solution (Python):

nums1 = []
sum = 0
for i in range(2):
    nums = [int(e) for e in input().split()]
    nums1.append(nums)

max = nums1[1][0]
min = nums1[1][0]
sum = 0

for i in range(len(nums1[1])):
    if nums1[1][i]>max:
        max = nums1[1][i]
    if nums1[1][i]<min:
        min = nums1[1][i]
    sum = sum + nums1[1][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):
input()
list=[int(i) for i in input().split()]
print(min(list),max(list),sum(list))

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 = sorted([int(x) for x in input().split()])
print(a[0],a[-1],sum(a))

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

print(min(ns), max(ns), sum(ns))

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

print(min(ns), max(ns), sum(ns))

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

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


print(min(ns), max(ns), sum(ns))

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

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

max = line[0]
min = line[0]
sum = line[0]

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

print(min, max, sum)

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

print(min(ns),max(ns),sum(ns))

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


print(min(ns),max(ns),sum(ns))

Solution (Python):

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


print(min(ns), max(ns), sum(ns))

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

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

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


print(min(ns), max(ns), sum(ns))

Solution (Python):

n = int(input())

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

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

Solution (Python):
from sys import stdin

stdin.readline()

arr = tuple(int(n) for n in stdin.readline().rstrip().split())

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

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

Solution (Python):
num = int(input())
lis = list(map(int,input().split()))
sum = 0
min = lis[0]
max = lis[0]
for i in range(num):
    if(min > lis[i]):min = lis[i]
    if(max < lis[i]):max = lis[i]
    sum = sum+lis[i]
    
print("%d %d %d" %(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())
array = list(map(int, input().split()))

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

Solution (Python):
num = 2000000

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

max = -num
min = num
total = 0

for x in l:
  if max < x:
    max =x
  if min > x:
    min = x
  total += x

print('%d %d %d'%(min, max, total))

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



min0 = 10000000
max0 = -10000000
sum0 = 0
for x in ns:
  min0 = min(min0, x)
  max0 = max(max0, x)
  sum0 += x
 
print(min0, max0, sum0)

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

print(min(ns), max(ns), sum(ns))

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

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

print(min(ns),max(ns),sum(ns))

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

min0 = 10000000
max0 = -10000000
sum0 = 0
for x in ns:
  min0 = min(min0, x)
  max0 = max(max0, x)
  sum0 += x
  
print(min0, max0, sum0)

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

print(min(ns), max(ns), sum(ns))

Solution (Python):
def az11():
    n, xs = int(input()), map(int,raw_input().split())
    print min(xs), max(xs), sum(xs)

az11()

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

Solution (Python):
t = int(raw_input())
a = raw_input().split()
small = int(a[0])
large = int(a[0])
total = 0
for i in a:
    v = int(i)
    if v < small:
        small = v
    if v > large:
        large = v
    total = total + v
print small,large,total

Solution (Python):
n = input()
a = map(int, raw_input().split())
a.sort()
sum = 0
for i in range(len(a)):
    sum += a[i]
print("%d %d %d" %(a[0], a[len(a) - 1], sum))

Solution (Python):
input()

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

Solution (Python):
input()
nums = list(map(int, input().split()))
n1, n2, n3 = min(nums), max(nums), sum(nums)
print(' '.join(map(str, [n1, n2, n3])))

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

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

Solution (Python):
n=int(raw_input())
ls=[int(i) for i in raw_input().split()]
ls.sort()
print ls[0],
print ls[len(ls)-1],
sum=0
for j in ls:
    sum+=j
print sum

Solution (Python):
n = int(raw_input())
a = map(int, raw_input().split())
sm = 0
h = len(a) / 2

while h > 0:
	for x in xrange(0,len(a)):
		y = x
		tmp = a[y]
		while y - h >= 0 and a[y-h] > tmp:
			a[y] = a[y-h]
			y = y - h
		a[y] = tmp
		
	if h == 1:
		h = 0
	elif h / 2 != 0:
		h = h / 2
	else:
		h = 1

for x in xrange(0,len(a)):
	sm = sm + a[x]

print a[0], a[len(a)-1], sm

Solution (Python):
raw_input()
args = map(int, raw_input().split(" "))
print " ".join(map(str, [min(args), max(args), sum(args)]))

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

Solution (Python):
n = input()
a = map(int,raw_input().split())
sum = a[0]
max = a[0]
min = a[0]
for i in range(1,n):
	sum += a[i]
	if min > a[i]:
		tmp = min
		min = a[i]
		a[i] = tmp
	if  a[i] > max:
		tmp = max
		max = a[i]
		a[i] = tmp
print str(min),str(max),str(sum)

Solution (Python):
n = input()

if n != 0:
	l = [int(x) for x in raw_input().split()]		
	print min(l), max(l), sum(l)
else:
	print "0 0 0"

Solution (Python):
n = input()
l = sorted(map(int,raw_input().split()))
print l[0], l[n-1], reduce(lambda x,y: x+y, l)

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

Solution (Python):
n = int(raw_input())
ai_list = map(int, raw_input().split())

max_ai = max(ai_list)
min_ai = min(ai_list)
sum_ai = sum(ai_list)

print '%d %d %d' % (min_ai, max_ai, sum_ai)

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

print '%d %d %d' % (min(list),max(list),sum(list))

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

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

Solution (Python):
n = int(raw_input())
list_ = map(int, raw_input().split())
sum = 0
for x in list_:
	sum += x
print min(list_), max(list_), sum

Solution (Python):
n=int(raw_input())
num_list = [int(x) for x in raw_input().split(" ")][:n]
print "%d %d %d" % (min(num_list), max(num_list), sum(num_list))

Solution (Python):
raw_input()
num_list = map(int, raw_input().split(" "))
print "%d %d %d" % (min(num_list), max(num_list), sum(num_list))

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

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

a = map(int, raw_input().split())

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

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

Solution (Python):
input()

data = [int(x) for x in input().split()]
print(min(data), max(data), sum(data))

Solution (Python):
input()

data = [int(x) for x in input().split()]
print(min(data), max(data), sum(data))

Solution (Python):
sum = 0
max = -10000000
min = 10000000

input()

for i in [int(x) for x in input().split()]:
    sum += i
    if i > max:
        max = i

    if i < min:
        min = i

print(min,max,sum)

Solution (Python):
sum = 0
max = -10000000
min = 10000000

input()

for i in [int(x)  for x in input().split()]:
    sum += i
    if i > max:
        max = i

    if i < min:
        min = i
print(min, max, sum)

Solution (Python):
input()

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

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

Solution (Python):
input()

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

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

Solution (Python):
input()

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

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

Solution (Python):
input()

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

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

Solution (Python):
input()

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

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

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

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

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

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

ls = map(int,raw_input().split())
mi = min(ls)
ma = max(ls)
su = sum(ls)
print "%d %d %d" % (mi,ma,su)

Solution (Python):
import sys
n = int(sys.stdin.readline())
l = [int(i) for i in sys.stdin.readline().split()]
print(min(l), max(l), sum(l))

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

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

def add(x, y):
	return x+y
	
print "%d %d %d" % (min(a_list), max(a_list), reduce(add, a_list))

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

Solution (Python):



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

Solution (Python):

if __name__ == "__main__":
	input()
	str = input()
	a = [int(x) for x in str.split()]
	print(min(a), max(a), sum(a))

Solution (Python):


n = input()
data = list(map(int,input().split()))
sum = 0
for elem in data:
    sum += elem
print('{} {} {}'.format(min(data),max(data),sum))

Solution (Python):


n = input()
data = list(map(int,input().split()))
print('{} {} {}'.format(min(data),max(data),sum(data)))

Solution (Python):


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

Solution (Python):
n=2
while n>0 :
	n=n-1
	a=map(int,raw_input().split())
else:
	print min(a),max(a),sum(a)

Solution (Python):
import sys

n = int( sys.stdin.readline() )
nums = [ int( val ) for val in sys.stdin.readline().split( " " ) ]

print( "{:d} {:d} {:d}".format( min( nums ), max( nums ), sum( nums ) ) )

Solution (Python):
import sys

n = int( sys.stdin.readline() )
nums = [ int( val ) for val in sys.stdin.readline().split( " " ) ]

print( "{:d} {:d} {:d}".format( min( nums ), max( nums ), sum( nums ) ) )

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

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

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

a_ = sorted(a)
sum = 0

for e in a_:
	sum += e

print "%d %d %d" %(a_[0], a_[-1], sum)

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

a_ = sorted(a)
sum = 0

for e in a_:
	sum += e

print "%d %d %d" %(a_[0], a_[-1], sum)

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

Solution (Python):



n = (int)(raw_input())
data = map(int, raw_input().split(' '))
print min(data), max(data), sum(data)

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

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

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

Solution (Python):
def main():

    n = int(input())
    numbers = list(map(int, input().split()))
    ans1 = min(numbers)
    ans2 = max(numbers)
    ans3 = sum(numbers)
    print(ans1, ans2, ans3)






if __name__=="__main__":
    main()

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

Solution (Python):

_ = raw_input()
nums = map(int, raw_input().rstrip().split())
print min(nums), max(nums), sum(nums)

Solution (Python):
if __name__ == "__main__":

    n = int(raw_input())
    v = map( int, raw_input().split())

    min = 1000000
    max = -1000000
    s = 0
    i = 0
    while i < n:
       if min > v[i]:
           min = v[i]
       if max < v[i]:
           max = v[i]
       s += v[i]
       i += 1

    print "{0} {1} {2}".format( min, max, s)

Solution (Python):
def min(a,i):
  x = a[0]
  for t in range(0, i):
    if x > a[t]:
      x = a[t]
  return x

def max(a,i):
  y = a[0]
  for t in range(0, i):
    if y < a[t]:
      y = a[t]
  return y

def sum(a,i):
  s = 0
  for t in range(0, i):
    s += a[t]
  return s

i = int(raw_input())
a = map(int, raw_input().split())
print "%d %d %d" % (min(a,i), max(a,i), sum(a,i))

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

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

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

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

minimum = min(data)
maximum = max(data)
total = sum(data)

print(minimum, maximum, total)

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

Solution (Python):
input()
data = [int(i) for i in input().split()]
 
minimum = min(data)
maximum = max(data)
total = sum(data)
 
print(minimum, maximum, total)

Solution (Python):
input()
data = [int(i) for i in input().split()]
  
minimum = min(data)
maximum = max(data)
total = sum(data)
  
print(minimum, maximum, total)

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

Solution (Python):
input()
data = [int(i) for i in input().split()]
 
minimum = min(data)
maximum = max(data)
total = sum(data)
 
print(minimum, maximum, total)

Solution (Python):
import warnings


number = input()

array = map(int, raw_input().split())

num_max = array[0]

num_min = array[0]

data_sum = 0



for i in range(len(array)):
	
	data_sum = data_sum + array[i]

	if array[i] < num_min: 
		num_min = array[i]
	
	if array[i] > num_max:
		num_max = array[i]

print num_min, num_max, data_sum

Solution (Python):
count = int(raw_input())

arr = map(int, raw_input().split())

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

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

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

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

maximum = max(nums)
minimum = min(nums)
total = sum(nums)

print(minimum, maximum, total)

Solution (Python):
n = int(raw_input())
a = map(int, raw_input().split(" "))

min = 1000000
max = -1000000
sum = 0
for x in a:
  if x < min:
    min = x
  if x > max:
    max = x
  sum += x

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

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

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

Solution (Python):
if __name__ == "__main__":
    input()
    str = input()
    a = [int(x) for x in str.split()]
    print(min(a), max(a), sum(a))

Solution (Python):
if __name__ == "__main__":
    input()
    str = input()
    a = [int(x) for x in str.split()]
    print(min(a), max(a), sum(a))

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

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

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

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

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

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

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

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

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

Solution (Python):
if __name__ == "__main__":
    input()
    str = input()
    a = [int(x) for x in str.split()]
    print(min(a), max(a), sum(a))

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

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

Solution (Python):
from itertools import tee
print(
    ' '.join(
        map(str,
            map(lambda f, ns: f(ns),
                (min, max, sum),
                (lambda m: tee(m, 3))(
                    map(int,
                        (lambda _, line: line.split())(
                            input(), input())))))))