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

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

maxValue = max(i)
minValue = min(i)
sumValue = sum(i)

print('{} {} {}'.format(minValue, maxValue, sumValue))

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

Solution (Python):
count = int(raw_input())
lis = map(int, raw_input().split())
mi = lis[0]
ma = lis[0]
su = 0
for i in lis:
    if i < mi:
        mi = i
    if i > ma:
        ma = i
    su += i

print '%d %d %d'%(mi, ma, su)

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

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

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

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

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

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

Solution (Python):
n = input()
l = map(int, raw_input().split())
max = l[0]
min = l[0]
s = l[0]
k = 1
while k < n:
    if max < l[k]:
        max = l[k]
    if min > l[k]:
        min = l[k]
    s = s + l[k]
    k = k + 1
print min, max, s

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

Solution (Python):
n = input()
a = map(int, raw_input().split())
if len(a) == n:
    print "%d %d %d" % (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):
num = int(raw_input())
x = raw_input().split()
i = 0
y = []
while i < num :
	y.append(int(x[i]))
	i = i + 1
ma, mi = y[0], y[0]
i = 1
while i < num :
	if ma < y[i] :
		ma = y[i]
	if mi > y[i] :
		mi = y[i]
	i = i + 1
s = sum(y)
print u"%d %d %d" % (mi, ma, s)

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

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

Solution (Python):


count = input()
input = map(int, raw_input().split())

min = min(input)
max =max(input) 
sum = sum(input)

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

Solution (Python):
import sys
lines = sys.stdin.readlines()
l = map(int, lines[1].split())
print min(l),max(l),sum(l)

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

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

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

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

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

Solution (Python):
input()
xs = list(map(int, input().split()))
print(' '.join(map(str,[f(xs) for f in [min,max,sum]])))

Solution (Python):

input()
items = sorted([int(i) for i in input().split(' ')])
print(items[0], items[-1], sum(items))

Solution (Python):
import sys

n = sys.stdin.readline()
list = map(int,sys.stdin.readline().split())

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

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

Solution (Python):
import sys

n = sys.stdin.readlines()

nstr = list(map(int, n[1].split(" ")))

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

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

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

Solution (Python):


import math


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

a.sort()

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

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

Solution (Python):
n = int(input(''))
s = input('')
nums = [int(a) for a in s.split()]
print("{0} {1} {2}".format(str(min(nums)), str(max(nums)), str(sum(nums))))

Solution (Python):
n = input()
line = raw_input().split()
val = [int(line[i]) for i in range(n)]
print '%d %d %d' % (min(val), max(val), sum(val))

Solution (Python):
num = int(raw_input())
a = map(int, raw_input().split())
Max = a[0]
Min = a[0]
Sum = 0
for i in range(num):
    if Max < a[i]:
        Max = a[i]
    if Min > a[i]:
        Min = a[i]
    Sum = Sum + a[i]
print "%d %d %d" %(Min, Max, Sum)

Solution (Python):
n = input()
l = map(int, raw_input().split())
max = l[0]
min = l[0]
s = 0
for i in range(n):
 if max < l[i]:
  max = l[i]
 if min > l[i]:
  min = l[i]
 s = s + l[i]
print min, max, s

Solution (Python):
n = input()
l = map(int, raw_input().split())
max = l[0]
min = l[0]
s = 0
for i in range(n):
 if max < l[i]:
  max = l[i]
 if min > l[i]:
  min = l[i]
 s = s + l[i]
print min, max, s

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

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

Solution (Python):
n = input()
N = map(int,raw_input().split())
sum = 0
for i in range (n):
  sum += N[i]

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

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

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

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

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

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

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

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

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

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

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

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

Solution (Python):
n = input()

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

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

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

Solution (Python):

n = input()
m = map(int,raw_input().split())
a = 0
for i in xrange(n):
    a += m[i]

print min(m),max(m),a

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

Solution (Python):

n = int(raw_input())
entry = map(int, raw_input().split())
    
print(str(min(entry)) + " " + str(max(entry)) + " " + str(sum(entry)))

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

Solution (Python):

n = input()
 
a = map(int, raw_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 '{0} {1} {2}'.format(min(a), max(a), sum(a))

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

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

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

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

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

Solution (Python):
n = input()
a = map(int, raw_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 "%d %d %d" %(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):
n = int(raw_input())
a = map(int, raw_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 "%d %d %d" %(min(a), max(a), sum(a))

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

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

Solution (Python):


n = input()
line = raw_input().split()
val = [int(line[i]) for i in range(n)]
print '%d %d %d' % (min(val), max(val), sum(val))

Solution (Python):
n = int(input())
a=[int(s) for s in input().split()]
print(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( raw_input() )
a = map( int , raw_input().split() )
print min(a) , max(a) , sum(a)

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

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

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

Solution (Python):
n = input()

min_num = 1000001
max_num = -1000001
sum = 0

tmp = map(int, raw_input().split())
for i in xrange(n):
    min_num = min(min_num, tmp[i])
    max_num = max(max_num, tmp[i])
    sum += tmp[i]
    
print "%d %d %d" % (min_num, max_num, sum)

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

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

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

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

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

print(str(a) + " " + str(b) + " " + str(c))

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

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

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

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

print(str(a),str(b),str(c))

Solution (Python):
while True:
    l = map(int, raw_input().split())
    num = map(int, raw_input().split())
    print "%d %d %d" % (min(num),max(num),sum(num))
    break

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

Solution (Python):

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


l.sort()
x =l[0]


l.reverse()
y = l[0]

z = sum(l)


print "%d %d %d" %(x, y, z)

Solution (Python):


def calc(list):
    """
    return (min,max,sum)

    >>> calc([10, 1, 5, 4, 17])
    (1, 17, 37)
    >>> calc([-2, -1, 0])
    (-2, 0, -3)
    >>> calc([-1000000,1000000,0])
    (-1000000, 1000000, 0)
    """

    return (min(list),max(list),sum(list))


if __name__ == '__main__':
    n = int(raw_input())
    list = map(int,raw_input().split())
    print " ".join(map(str,calc(list)))

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

Solution (Python):


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

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

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

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

num_min = min(b)
num_max = max(b)
sum = sum(b)

print num_min, num_max, sum

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

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

print min(numbers), max(numbers), sum(numbers)

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

Solution (Python):


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

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

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

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

Solution (Python):


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

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

Solution (Python):

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

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

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

max = x_list[0]
min = x_list[0]
sum = x_list[0]

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

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

Solution (Python):
input()



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

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

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

Solution (Python):
class MinMaxAndSum:
    def output(self, a):
        print "%d %d %d" % (min(a), max(a), sum(a))

if __name__ == "__main__":
    mms = MinMaxAndSum()
    raw_input()
    a = map(int, raw_input().split())
    mms.output(a)

Solution (Python):
S = int(input())
N = list(map(int, input().split(' ')))
N.sort()
sum = 0
for i in range(S):
	sum += N[i]
	
print(N[0], N[-1], sum)

Solution (Python):
k=raw_input().split()
k=raw_input().split()
k.sort()
for i in range(len(k)):
        k[i]=int(k[i])
        k.sort()
print min(k),
print max(k),
print sum(k)

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

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

Solution (Python):

a = int(input())
b_int = map(int, input().split())
max = -1000000
min = 1000000
total =0
for i in b_int:
    if i > max:
        max = i
    if i < min:
        min = i
    total += i
print(min, max, total)

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

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

print(min(vals), max(vals), sum(vals))

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

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

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

Solution (Python):



















num_min = 1000001
num_max = -1000001
num_sum = 0
num = int(input())



a = input().split()

for i in range(num):
	a[i]=int(a[i])

for i in range(num):
	if a[i]<num_min:
		num_min = a[i]

	if a[i]>num_max:
		num_max = a[i]

	num_sum+=a[i]

print("{0} {1} {2}".format(num_min,num_max,num_sum) );

Solution (Python):



















num_min = 1000001
num_max = -1000001
num_sum = 0
num = int(input())



a = input().split()

for i in range(num):
	a[i]=int(a[i])
	if a[i]<num_min:
		num_min = a[i]

	if a[i]>num_max:
		num_max = a[i]

	num_sum+=a[i]

print("{0} {1} {2}".format(num_min,num_max,num_sum) );

Solution (Python):
n = int(input())
InputNum = input().split()
a = []
for x in range(n):
    a.append(int(InputNum[x]))
a.sort()
min = a[0]
a.reverse()
max = a[0]
sum = 0
for y in range(n):
    sum += int(a[y])

print(min,max,sum)

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

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

Solution (Python):


def main():
	input()
	nums = [int(i) for i in input().split(" ")]
	print("%d %d %d" % (min(nums),max(nums),sum(nums)))
if __name__ == '__main__':
  main()

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

if n < 0 or n > 10000:
    pass
else:
    sum = 0
    for i in range(len(a)):
        sum += a[i]
    print(min(a), max(a), sum)

Solution (Python):
import math

n = input()

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

minNum = 100000000000
maxNum = -100000000000
sumNum = 0

for x in a :
    minNum = min(minNum, x)
    maxNum = max(maxNum, x)
    sumNum += x

minNum, maxNum, sumNum = map(str, [minNum, maxNum, sumNum])

print minNum + ' ' + maxNum + ' ' + sumNum

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

Solution (Python):
N = int(input())
n = input().split()
a = []
for i in range(N):
    a.append(int(n[i]))
a = sorted(a)
print('{0} {1} {2}'.format(a[0], a[-1], sum(a)))

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

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

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

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

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

Solution (Python):

n=int(input())
list=list(map(int,input().split()))
list.sort()
print(str(list[0])+" "+str(list[n-1])+" "+str(sum(list)))

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

min = data[0]
max = data[0]
sum = 0
for x in data:
    sum += x
    if x > max:
        max = x
    if x < min:
        min = x

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

Solution (Python):
N = int(input())
a = list(map(int, input().split()))
max = -float('inf')
min = float('inf')
sum = 0
for i in range(N):
    
    if a[i] > max:
        max = a[i]
    if a[i] < min:
        min = a[i]
    sum += a[i]
    
print(min, max, sum)

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

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

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

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

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

mi = l[0]
ma = l[0]
s = 0
for i in l :
    if i > ma :
        ma = i
    if i < mi :
        mi = i
    s += i
print(mi,ma,s)

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

print(min(a),max(a),sum(a),sep=" ")

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

min = arr[0]
max = arr[0]
sum = 0

for a in arr:
	if a < min:
		min = a
	if max < a:
		max = a
	sum += a

print(min, max, sum)

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

Solution (Python):
n = int(input())
in_list = [int(s) for s in input().split()]
print("%d %d %d" % (min(in_list), max(in_list), sum(in_list)))

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()
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):
count = 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):
count = 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()
date = [int(i) for i in input().split()]

print(min(date),max(date),sum(date))

Solution (Python):
count = 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):
count = input()
data = [int(i) for i in input().split()]

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

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

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

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

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

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

Solution (Python):
n = input()
lis = map(int, raw_input().split())
min = 1000000
max = - min
sum = 0
for t in lis:
	sum += t
	if min > t:
		min = t
	if max < t:
		max = t

print min, max, sum

Solution (Python):
n = input()
lis = map(int, raw_input().split())
min = 1000000
max = - min
sm = 0
for t in lis:
	if min > t:
		min = t
	if max < t:
		max = t

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

Solution (Python):
n = input()
lis = map(int, raw_input().split())
mn = lis[0]
mx = lis[0]
for t in lis:
	if mn > t:
		mn = t
	if mx < t:
		mx = t
print mn, mx, sum(lis)

Solution (Python):
n = input()
lis = map(int, raw_input().split())
mn = lis[0]
mx = lis[0]
for t in lis:
	if mn > t:
		mn = t
	if mx < t:
		mx = t
print "%s %s %s" % (mn, mx, sum(lis))

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

L.sort()

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

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

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

Solution (Python):
z = input()
r = input()
a = r.split(' ')    
list =[]
for i in a:
    list.append(int(i))
b = max(list)
c = min(list)
d = sum(list)
print('%s %s %s'%(c,b,d))

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

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

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

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

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

Solution (Python):


n = input()

a = []

a_input = raw_input().split()

for i in a_input:
    a.append(int(i))

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

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

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

Solution (Python):
import sys

n = int(sys.stdin.readline().strip())
data = sys.stdin.readline().strip().split(' ')

min = None
max = None
sum = 0

for i in range(n):
    num = int(data[i])
    if max is None or num > max:
        max = num

    if min is None or num < min:
        min = num

    sum += num

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

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

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

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

print min,max,sum

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

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

Solution (Python):
a = []
for i in range(0,2):
    a.append(input())
d = list(map(int,a[1].split()))
print('{} {} {}'.format(min(d),max(d),sum(d)))

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

print(min,max,sum)

Solution (Python):

import math

def MMS(n,a):
    min = max = int(a[0])
    sum = int(a[0])
    for i in range(1,n):
        if min > int(a[i]):
            min = int(a[i])
        if max < int(a[i]):
            max = int(a[i])
        sum += int(a[i])
    print(min,max,sum)
    
if __name__=="__main__":
    n = int(input())
    a = input().split(" ")
    MMS(n,a)

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

Solution (Python):
n = input()
data = map(int, raw_input().split())
newdata = sorted(data)
sum = 0
for i in range(n):
    
    sum += newdata[i]

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

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

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

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

Solution (Python):

def getLnInput():
    return input().split()



def ceilDivision(a, b):
    return (a - 1) // b + 1


def main():
    getLnInput()
    nums = list(map(int, getLnInput()))
    print(min(nums), max(nums), sum(nums))
    return


main()

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

sum = 0

for i in ai:
    sum += i

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

Solution (Python):
n = input()

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

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

Solution (Python):
n= int(input())
l= list(map(int,input().split()))
s= 0
for i in range(n):
	if(l[i]<l[0]):
		l[0],l[i]= l[i],l[0]
for j in range(n):
	if(l[n-1]<l[j]):
		l[n-1],l[j]= l[j],l[n-1]
for k in range(n):
	s+= l[k]
print(l[0],l[n-1],s)

Solution (Python):
n = input()
a = map(int,raw_input().split())
s = 0
m = a[0]
M = a[0]
for i in range(0,n):
    s = s + a[i]
    if m > a[i]:
        m = a[i]
    if M < a[i]:
        M = a[i]
print m,M,s

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

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

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

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

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

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

Solution (Python):
n = int(input())
a = list(map(int, input().split()))
minimum = 1000001
maximum = -1000001
sum = 0
for i in range(n):
    if(a[i] < minimum):
        minimum = a[i]
    if(maximum < a[i]):
        maximum = a[i]
    sum += a[i]
print("%d %d %d" % (minimum, maximum, sum))

Solution (Python):

import sys
n=int(input())
a=map(int,input().split())

min,max,sum=2**63-1,-2**63,0

for i in a:
    if i<min:
        min=i
    if max<i:
        max=i
    sum+=i

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

Solution (Python):
if __name__ == "__main__":
	input()
	lis = [ int(i) for i in input().split()]
	print("%d %d %d"%(min(lis),max(lis),sum(lis)))

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

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

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

Solution (Python):
import sys

[num, values] = sys.stdin.readlines()
values = [int(x) for x in values.split()]

min_value = 999999999999
max_value = -999999999999
total_value = 0

for value in values:
    if value < min_value:
        min_value = value
    if max_value < value:
        max_value = value

    total_value += value

print("{0} {1} {2}".format(min_value, max_value, total_value))

Solution (Python):
x = input()
x = input()
x = x.split(" ")
x = [int(z) for z in x]
cmax = -1000000
cmin = 1000000
csum = 0
for z in x:
    if cmax < z:
        cmax = z
    if cmin > z:
        cmin = z
    csum += z
print("%d %d %d" % (cmin, cmax, csum))

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

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

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

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

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

Solution (Python):
i=input()
a=[x for x in map(int, input().split()) ]
a.sort()
print("{0} {1} {2}".format(a[0], a[-1], sum(a)))

Solution (Python):
import sys
import functools

def minmaxsum(*t):
    (x,y,z),e=t
    if x > e:
        x=e
    if y < e:
        y = e
    z += e
    return (x,y,z)

input()
m,x,s = functools.reduce(minmaxsum,map(int,input().split()),(1000000,-1000000,0\
))
print(m,x,s)

Solution (Python):
import sys
import functools

def minmaxsum(*t):
    (x,y,z),e=t
    if x > e:
        x=e
    if y < e:
        y = e
    z += e
    return (x,y,z)

input()
m,x,s = functools.reduce(minmaxsum,map(int,input().split()),(1000000,-1000000,0\
))
print(m,x,s)

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

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

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

Solution (Python):
cnt = int(input())
values = input()
i_list = [int(x) for x in values.split()]
print('{0} {1} {2}'.format(min(i_list), max(i_list), sum(i_list)))