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

min = integer[0]
max = integer[0]
sum = 0
for i in integer:
    if max<i:
        max = i
    if i < min:
        min = i
    sum += i

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

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

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

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

Solution (Python):
def main():
    n = int(input())
    a = list(map(int, input().split()))
    a.sort()
    a_min = a[0]
    a_max = a[-1]

    total = 0
    for num in a:
        total += num
    
    print(a_min, a_max, total)


if __name__ == "__main__":
    main()

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



minimum = data[0]
maximum = data[0]
goukei = 0

for i in data:
	if i < minimum:
		minimum = i

	if i > maximum:
		maximum = i

	goukei += i

print("{:} {:} {:}".format(minimum, maximum, goukei))

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

M=max(num)
m=min(num)
s=sum(num)
print("{0} {1} {2}".format(m,M,s))

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

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

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

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

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

if len(nums) != n:
    quit()

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

Solution (Python):
import sys

def main():
    lines = sys.stdin.readlines()

    n_max = 0
    sum_var = 0
    min_var = 0
    max_var = 0
    for index, line in enumerate(lines):
        if index == 0:
            line = line.strip('\n')
            n_max = int(line)
            
        elif index == 1:
            line = line.strip('\n')
            elems = line.split(" ")
            min_var = int(elems[0]) 
            max_var = int(elems[0])
            for elem in elems:
                elem = int(elem)
                if elem < min_var:
                    min_var = elem
                if elem > max_var:
                    max_var = elem
                sum_var += elem

    print min_var, max_var, sum_var

if __name__ == "__main__":
    main()

Solution (Python):

"""
http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_4_D&lang=jp

"""
import sys
from sys import stdin
input = stdin.readline


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


if __name__ == '__main__':
    main(sys.argv[1:])

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

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

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



import math

def main():

    num = int(input())

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

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

    print('%d %d %d' % (mn, mx, sm))

if __name__ == '__main__':
    main()

Solution (Python):
a = input()
num = input()
num_1 = num.split()
s = 0
cnt = 0
for i in range(len(num_1)):
    s += int(num_1[cnt])
    cnt += 1

b = []
cnt = 0
for i in range(len(num_1)):
    b.append(int(num_1[cnt]))
    cnt += 1

print(min(b),max(b),s)

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

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

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

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

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

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

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

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

if __name__ == "__main__":
    main()

Solution (Python):
n = int(input())
list = input().split(" ")
min = int(list[0])
max = int(list[0])
total = int(list[0])
for i in range(1, n):
	num = int(list[i])
	if num > max:
		max = num
	if num < min:
		min = num
	total += num
	
print("%s %s %s"%(min, max, total))

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

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

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

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

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

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

Solution (Python):
n = input()

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

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

Solution (Python):
import math
a = int(input())
x = list(map(int,input().split()))

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

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

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

Solution (Python):
def main():
    size = int(input())
    data = [0]*size

    n = input().split()

    for i in range(0,len(n)):
        data[i] = int(n[i])

    max = data[0]

    for i in range(1,len(data)):
       if data[i] <= max:
           max = data[i]

    min = data[0]

    for i in range(1,len(data)):
        if data[i] >= min:
            min = data[i]

    total = 0

    for num in data:
        total += num

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

if __name__ == "__main__":
    main()

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

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

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

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

Solution (Python):

n = input()
array = map(int, raw_input().split())
print min(array),max(array),sum(array)

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

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

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

Solution (Python):
n1 = int(input())
a1 = [int(x) for x in input().split()]

b= max(a1)
c= min(a1)
d= sum(a1)
print(c,b,d)

Solution (Python):
length = int(input())
arr = input().split()

iniV = int(arr[0])

mi = iniV
mx = iniV
su = 0
for s in arr:
    val = int(s)
    su += val
    if(val < mi):
        mi = val
    if(val > mx):
        mx = val

print(mi, mx, su)

Solution (Python):
import sys

l = []
for input in sys.stdin:
    l.append(input.split())
for i in range(0,len(l)):
    for j in range(0,len(l[i])):
        l[i][j] = int(l[i][j])
print min(l[1]),max(l[1]),sum(l[1])

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

Solution (Python):
nl = 1
while True:
	try:
		line = input()
		if nl==1:
			nl = nl + 1
		else:
			nums = line.split(' ')
			nums = list(map(int, nums))
			print('{} {} {}'.format(min(nums), max(nums), sum(nums)))
		
	except EOFError:
		break

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

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(raw_input())
x = raw_input()
x = x.split(" ")
x = map(int,x)
print "%d %d %d" %(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):
x = int(input())

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

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

Solution (Python):
n = int(input())
nums = input().split()
su = 0
ma = -1000000
mi = 1000000

for v in range(n):
    num = int(nums[v])
    if num > ma:
        ma = num
    if num < mi:
        mi = num
    su += num

print(mi, ma, su)

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

list_min = min(list)
list_max = max(list)
list_sum = sum(list)

print(list_min, list_max, list_sum,sep=' ')

Solution (Python):
def min(a):
    tmp = a[0]
    for i in a:
        if i < tmp:
            tmp = i
    return tmp

def max(a):
    tmp = a[0]
    for i in a:
        if i > tmp:
            tmp = i
    return tmp

def sum(a):
    tmp = 0
    for i in a:
        tmp = tmp + i
    return tmp

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

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

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

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

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

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

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


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

Solution (Python):

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

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

Solution (Python):
n=int(input())
a=list(map(int,input().split()))
sm=0
for i in a :
    sm+=i
print("{} {} {}".format(min(a),max(a),sm))

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

Solution (Python):


n = int(input())
l = input().split()

for i,j in enumerate(l):
    l[i] = int(j)

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

Solution (Python):
n = input()
s = 0
a = input()
b = a.split(" ")
c = []
for i in range(int(n)):
    c.append(int(b[i]))

for u in c:
    s=s+u

print(min(c),max(c),s)

Solution (Python):


import sys

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

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

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

while i < len:
	sum += list[i]
	i += 1

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

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

Solution (Python):
N = int(input())
n = [int(i) for i in input().split()]
min = max = total = n[0]
for i in range(1, N):
    if max < n[i]: max = n[i]
    if min > n[i]: min = n[i]
    total += n[i]
print('{} {} {}'.format(min, max, total))

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

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

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

Solution (Python):


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

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

Solution (Python):


if __name__ == '__main__':
    raw_input()
    a = map(int, raw_input().split())
    print '{} {} {}'.format(min(a), max(a), sum(a))

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

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

l=input().split()

b=min(map(int,l))
a=max(map(int,l))

result=0
while n>=1:
    result=result+int(l[n-1])
    n=n-1

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

Solution (Python):

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

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

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

min = a[0]
max = a[n-1]

sum = 0

for item in a:
    sum += item
    
print(min, max, sum)

Solution (Python):
n = int,input()
a = list(int(i) for i in input().split())
a.sort()
print(str(min(a)) + " " + str(max(a)) + " " + str(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())
nums = list(map(int, input().split(" ")))

maxnum = -1000000
minnum = 1000000
total = 0

for item in nums:
	if maxnum < item:
		maxnum = item
	if minnum > item:
		minnum = item
		
for item in nums:
	total += item
	
print(str(minnum) + " " + str(maxnum) + " " + str(total))

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

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

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

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

Solution (Python):
n = int(input())
ai = [int(x) for x in input().split()]
min = ai[0]
max = ai[0]
total = 0
for x in ai:
    total += x
    if x < min:
        min = x
    if x > max:
        max = x
print(min, max, total)

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

Solution (Python):
n=int(input())
r=input().split()
for i in range(len(r)):
    r[i]=int(r[i])
s=sum(r)
m=min(r)
ma=max(r)
print(m,ma,s)

Solution (Python):
n=int(input())
r=input().split()
for i in range(len(r)):
    r[i]=int(r[i])
s=sum(r)
m=min(r)
ma=max(r)
print(m,ma,s)

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

Solution (Python):
n = int(input())
s=0
num = [int(i) for i in input().split()]
mx = num[0]
mn = num[0]
for i in range(n):
        s = s+num[i]
        if(mx < num[i]):
            mx = num[i]
        if(mn > num[i]):
            mn = num[i]
print("{} {} {}".format(mn,mx,s))

Solution (Python):
n = int(input())
s=0
num = [int(i) for i in input().split()]
mx = num[0]
mn = num[0]
for i in range(n):
        s = s+num[i]
        if(mx < num[i]):
            mx = num[i]
        if(mn > num[i]):
            mn = num[i]
print("{} {} {}".format(mn,mx,s))

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

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

Solution (Python):


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

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

totalNum = 0
for i in range(0, numRange):
    totalNum += inputNumList[i]

print(min(inputNumList), max(inputNumList), totalNum)

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

M = max(nums)
m = min(nums)
S = sum(nums)

print("{} {} {}".format(m,M,S))

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

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

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

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

Solution (Python):
input()

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

sum = 0

for x in a:
    sum += x

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

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

Solution (Python):
n = int(input())
a = list(map(int, input().split()))
mini = 10000001
maxi = -10000001
sumi = 0
for i in range(n):
    if  a[i] < mini:
        mini = a[i]
    if a[i] > maxi:
        maxi = a[i]
    sumi += a[i]
print("{} {} {}".format(mini, maxi, sumi))

Solution (Python):
input()
li=list(map(int,input().split()))
sum=0
for i in li:
	sum+=i
print(min(li),max(li),sum)

Solution (Python):
input()

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

sum = 0

for x in a:
    sum += x

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

Solution (Python):



n = int(input())
a = [int(x) for x in input().split(' ')]

min_val = a[0]
max_val = a[0]
sum_val = a[0]

for i in range(1, n):
    if a[i] < min_val:
        min_val = a[i]
    if a[i] > max_val:
        max_val = a[i]
    sum_val += a[i]

print(min_val, max_val, sum_val)

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

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

Solution (Python):
input()

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

s = 0

for i in a:
    s = s + i

print(min(a), max(a), s)

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

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

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

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

Solution (Python):
n=int(input())
l=list(map(int,input().split()))
Min=1000000
Max=-1000000
Sum=0
for i in range(n):
    if l[i]<Min:
        Min=l[i]
    if l[i]>Max:
        Max=l[i]
    Sum+=l[i]
print(Min,Max,Sum)

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

def main():
    n = int(input())
    a = numinput()
    print('%d %d %d' % (min(a), max(a), sum(a)))

if __name__ == "__main__":
    main()

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

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

Solution (Python):
n = int(input())
a = map(int, input().split())
sort = sorted(a)
Min = sort[0]
Max = sort[-1]
Sum = 0
for i in range(len(sort)):
    Sum = Sum + int(sort[i])
print(Min, Max, Sum)

Solution (Python):
n = int(input())
a = list(map(int, input().split()))
sort = sorted(a)
Min = sort[0]
Max = sort[-1]
Sum = 0
for i in range(len(sort)):
    Sum = Sum + int(sort[i])
print(Min, Max, Sum)

Solution (Python):
n = int(input())
a = list(map(int, input().split()))
sort = sorted(a)
Min = sort[0]
Max = sort[-1]
Sum = 0
for i in range(len(sort)):
    Sum = Sum + int(sort[i])
print(Min, Max, Sum)

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

Solution (Python):
count = int(input())
elements = list(map(int, input().split()))
                
                
asum = sum(elements)
amax = max(elements)
amin = min(elements)
print(amin, amax, asum)

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

Solution (Python):


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

b = sorted(a)

min = b[0]
Max = b[k-1]

sum = 0
for i in b:
   sum += i

print('%i %i %i' % (min,Max,sum))

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

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

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

numbers = list(map(lambda s: int(s), input().split()))

print(f'{min(numbers)} {max(numbers)} {sum(numbers)}')

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

min_value = arr[0]
max_value = arr[0]
sum = 0
for i in range(n):
	current = arr[i]
	min_value = min(min_value, current)
	max_value = max(max_value, current)
	sum += current

print(str(min_value) + ' ' + str(max_value) + ' ' + str(sum))

Solution (Python):



import sys

if __name__ == '__main__':
    n = int(raw_input())
    l = [int(x) for x in raw_input().split()]
    print min(l), max(l), sum(l)

Solution (Python):
n=int(input())
max=-1000001;min=1000001;g=0;i=0;
num=list(map(int,input().split()))
for x in num:
 if max<x:
  max=x
 if min>x:
  min=x
 g+=x
 i+=1
print(min,max,g)

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

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

print(vmin, vmax, vsum)

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

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

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

Solution (Python):

n = int(input())
l = input().split()
num_list = []
for i in l:
    num_list.append(int(i))
num_list.sort()
min_num = num_list[0]
max_num = num_list[-1]
total = 0
for i in num_list:
    total += i

print(min_num, max_num, total)

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

Solution (Python):
N = input()

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

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

Solution (Python):


amount = int(input())
numbers = [int(i) for i in input().rstrip().split()]

minimum = 1000000
maximum = -1000000
total = 0
for number in numbers:
    if number < minimum:
        minimum = number
    if number > maximum:
        maximum = number
    total += number

print(minimum, maximum, total)

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

int_a = []
for i in range(n):
    int_a.append(int(a[i]))

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

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

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

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

if __name__ == '__main__':
    main()

Solution (Python):
n = input()
list = input().split()
n = int( n )
i = 0
sum = 0
while i < n:
    list[i] = int( list[i] )
    sum += list[i]
    i += 1
list.sort()
print( list[0], list[i-1], sum )

Solution (Python):
import math
def solve(numbers):
    min, max, sum=numbers[0],numbers[0],0
    
    for number in numbers:
        if min > number:
            min = number
        if max < number:
            max = number
        sum+=number
    print('{0} {1} {2}'.format(min,max,sum))
        
    
def answer():
    case = int(input())

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


if __name__ =='__main__':
    answer()

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

Solution (Python):
from sys import stdin

count = int(stdin.readline())
ns = [int(n) for n in stdin.readline().split(' ')]
minimum = None
maximum = None
total = 0

for n in ns:
    if minimum == None or minimum > n:
        minimum = n
    if maximum == None or maximum < n:
        maximum = n

    total += n

print(minimum, maximum, total)

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

Solution (Python):
n = int(input())
a = list(map(int, input().split()))
MAX = -10 ** 18
MIN = 10 ** 18
SUM = 0
for x in a:
    MAX = max(MAX, x)
    MIN = min(MIN, x)
    SUM += x
print(MIN, MAX, SUM)

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

    pair_str = input().split()
    pair_int = [int(s) for s in pair_str]

    min_value = min(pair_int)
    max_value = max(pair_int)
    sum = 0
    for value in pair_int:
        sum = sum+ value

    print("{} {} {}".format(min_value, max_value, sum))

main()

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

Solution (Python):


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

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

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

print(a,b,c)

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

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

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

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

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

print(a,b,c)

Solution (Python):
from sys import stdin
input = stdin.readline
N = int(input())
a = list(map(int,input().split()))
print(str(min(a))+' '+str(max(a))+' '+str(sum(a)))

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

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

Solution (Python):
x=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())
ns=input().split()
for i in range(len(ns)):
	ns[i]=int(ns[i])
asum=sum(ns)
amin=min(ns)
amax=max(ns)
print(amin,amax,asum)

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

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

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

dmin=min(data)
dmax=max(data)
dsum=sum(data)

print(dmin,dmax,dsum)

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

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


keisan()

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

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

Solution (Python):
N = int(input())
a = [int(i) for i in input().split()]
a.sort()
print(a[0],a[-1],sum(a))

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

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

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

print(b,c,d)

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

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

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

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

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

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

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


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

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

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

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

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

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

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

Solution (Python):
n=int(input())
an=list(map(int,input().split()))
answer_sum=sum(an)
max_syo=an[0]
for i in an:
    if i<max_syo:
        max_syo=i
max_dai=an[0]
for l in an:
    if l>max_dai:
        max_dai=l
print(max_syo,max_dai,answer_sum)

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

print('{0} {1} {2}'.format(min(array2),max(array2),sum(array2)))

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

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

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