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):
BIG_NUM = 2000000000

N = int(input())

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

maximum = -BIG_NUM
minimum = BIG_NUM
total = 0

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

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

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

Solution (Python):
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()))
mx=-10000000
mn=10000000
sum=0
for i in L:
    mx=max(mx,i)
    mn=min(mn,i)
    sum=sum+i
print(mn,mx,sum)

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

Solution (Python):
input()

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

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

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

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

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

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

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

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

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 = 0
s = []
while n < 2:
    s.append(input())
    n += 1

new_list = []


for number in s[1].split():
    new_list.append(int(number))

maximum = max(new_list)
minimum = min(new_list)
summation = sum(new_list)
print(minimum, maximum, summation)

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

if a == len(nums):
    print(min(nums), max(nums), sum(nums))
else:
    print("error")

Solution (Python):
n = int(input())
sss = input().split(' ')
ma = -9999999999
mi = 9999999999
s = 0
for i in sss:
	num = int(i)
	if ma < num: ma = num
	if mi > num: mi = num
	s += num
print('{0} {1} {2}'.format(mi, ma, s))

Solution (Python):


import math

def main():

	n = input()
	l = map(int,raw_input().split())
	minimum = l[0]
	maximum = l[0]
	summation = 0
	for i in l:
		if i < minimum:
			minimum = i
		if i > maximum:
			maximum = i
		summation += i
	print('%d %d %d' % (minimum,maximum,summation))

if __name__ == "__main__":

	main()

Solution (Python):
num = int(input())
sum = 0
data = []
data = input().split()
for x in range(0,num):
    data[x] = int(data[x])
    sum = sum + data[x]
data.sort()
print(data[0],data[num-1],sum)