Problem:


  MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});

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



Sample input:
5
10 1 5 4 17


Sample output:
1 17 37

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

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

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

Submission status: Runtime Error

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

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

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

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

Submission status: Runtime Error

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

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

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

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

Submission status: Runtime Error

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

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

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

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

Submission status: Runtime Error

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

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

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

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

Submission status: Runtime Error

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

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

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

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

Submission status: Runtime Error

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

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

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
input()
data = input().split()

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

print(minimum, maximum, total)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
input()
date = input().split()

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

print(minimum, maximum, total)

Submission status: Runtime Error

Solution code:
input()
data = input().split()

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

print(minimum, maximum, total)

Submission status: Runtime Error

Solution code:
input()
data = [str(i) for i in input().split()]

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

print(minimum, maximum, total)

Submission status: Runtime Error

Solution code:
input()
data = input().split()

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

print(minimum, maximum, total)

Submission status: Runtime Error

Solution code:
input()
nums = input().split()

maximium = max(nums)
minimium = min(nums)
sums = sum(nums)

print(maximium, minimium, sums)

Submission status: Runtime Error

Solution code:
input()
nums = input().split()
int(nums)

maximium = max(nums)
minimium = min(nums)
sums = sum(nums)

print(maximium, minimium, sums)

Submission status: Runtime Error

Solution code:
input()
nums = [int(i) for i in input().split()]
maximium = max(nums)
minimium = min(nums)
sums = 0
for r in range(len(nums)):
    sums += nums[r]

print(maxinium, minimium, sums)

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n = raw_input().split()
x = raw_input().split()


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

Submission status: Runtime Error

Solution code:
n = raw_input().split()
x = raw_input().split()


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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
input()
xs = map(int, input().split())
print([f(xs) for f in [min,max,sum]])

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n=raw_input()
a=[]
for i in range(n):
  a[i]=raw_input()
print '%d %d %d' %(min(a), max(b), sum(a))

Submission status: Runtime Error

Solution code:
n=raw_input()
a=[]
for i in range(n):
  a[i]=raw_input()
print '%d %d %d' %(min(a), max(a), sum(a))

Submission status: Runtime Error

Solution code:
n=raw_input()
a=[]
for i in range(n):
  a[i]=raw_input()
print "%d %d %d" %(min(a), max(a), sum(a))

Submission status: Runtime Error

Solution code:
n=raw_input()
a=[]
for i in range(n):
   a.append(int(raw_input()))
print "%d %d %d" %(min(a), max(a), sum(a))

Submission status: Runtime Error

Solution code:
n=raw_input()
a=[]
for i in range(n):
   a.append(int(raw_input()))
print '%d %d %d' %(min(a), max(a), sum(a))

Submission status: Runtime Error

Solution code:
n=raw_input()
a=[]
for i in range(n):
   a.append(int(raw_input()))
print '%d %d %d' % (min(a), max(a), sum(a))

Submission status: Runtime Error

Solution code:
n=raw_input()
a=[]
for i in range(n):
   a.append(int(raw_input()))
print'%d %d %d' % (min(a), max(a), sum(a))

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n=raw_input()
a=[]
for i in range(n):
   a.append(int(raw_input()))
print '%d %d %d' % (min(a),max(a),sum(a))

Submission status: Runtime Error

Solution code:
n=int(input())
a=[0]*n
sum=0
for i in range(n):
 a[i]= int(input())
 sum=sum+a[i]
a.sort()

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

Submission status: Runtime Error

Solution code:
n=input()
a=[0]*n
sum=0
for i in range(n):
 a[i]= int(input())
 sum=sum+a[i]
a.sort()

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n=input()
a=[]
for i in range(n):
   a.append(int(raw_input()))
print '%d %d %d' % (min(a), max(a), sum(a))

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n=int(input())
a=[0]*n
sum=0
for i in range(n):
 a[i]= int(input())
 sum=sum+a[i]
a.sort()

print'a[0],a[n-1],sum'

Submission status: Runtime Error

Solution code:
n=int(raw_input())
a=[0]*n
sum=0
for i in range(n):
 a[i]= int(raw_input())
 sum=sum+a[i]
a.sort()

print'a[0],a[n-1],sum'

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
n = input()
N = input().split()
sum = 0
for i in range (n):
  sum += N[i]

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

Submission status: Runtime Error

Solution code:
n = int(raw_input())
a = raw_input().split()
max = a[0]
min = a[0]
sum = 0

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

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

Submission status: Runtime Error

Solution code:
n = int(raw_input())
a = raw_input().split()
max = a[0]
min = a[0]
sum = 0

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

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

Submission status: Runtime Error

Solution code:
n = input()
sum = 0

for i in range(0, n-1):
   x = input()
   m[i] = x
   sum = sum + m[i]

min = min(m[i] for i in range(0, n-1))
max = max(m[i] for i in range(0, n-1))

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

Submission status: Runtime Error

Solution code:
n = input()
sum = 0
 
for i in range(0, n-1):
   x = input()
   m[i] = x
   sum = sum + m[i]
 
min = min(m[i] for i in range(0, n-1))
max = max(m[i] for i in range(0, n-1))
 
print '%d %d %d' %(min, max, sum)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n = input()
for i in range(n):
    list = input()
print "%d %d %d" % (min(list), max(list), sum(list))

Submission status: Runtime Error

Solution code:
n = input()
for i in range(n):
  a = raw_input().split()

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

for num in a
  if num > max:
    max = num
  if num < min:
    min = num
  sum += num 

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

Submission status: Runtime Error

Solution code:
n = input()

a = raw_input().split()

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

for num in range(len(a-1))
  if num > max:
    max = num
  if num < min:
    min = num
  sum += num 

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

Submission status: Runtime Error

Solution code:
x = True
while x == True:

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

 if m[0] == 0 and m[1] == 0:
     break

 for i in xrange(m[0]):
    print "#" * m[1]
 print ""

Submission status: Runtime Error

Solution code:
x = 0
while x == 0:

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

 if m[0] == 0 and m[1] == 0:
     break

 for i in xrange(m[0]):
    print "#" * m[1]
 print ""

Submission status: Runtime Error

Solution code:
n = raw_input()

for i in range(n):
   x[i] = map(int,raw_input())

amax = x[1]
for i in range(n):
   if x[i] > amax:
      amax = x[i]

amin = x[1]
for i in range(n):
   if x[i] < amax:
      amin = x[i]

asum = 0
for i in range(n):
    asum = asum + x[i]

print "amin amax asum"

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n = input()
sum = 0
for i in rangr(n):
  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)

Submission status: Runtime Error

Solution code:
n = input()
sum = 0
for i in range(n):
  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)

Submission status: Runtime Error

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

 
Compile Error Logs: 

You are not authorized to see the message. 
 
 
Status

Submission status: Runtime Error

Solution code:
n = int(raw_input())
k[0] = 0;

for i in range(n-1);
  k[i] = int(raw_input())
  if(k[0]<=k[i]);
    max = k[i]
  elif(k[0]>=k[i]);
    min = k[i]
print max,min

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n = input()
for i in range(n):
 a = map(int,raw_input().split())

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
n = int(input())
a = map(int, input().split())
min_a = min(a)
max_a = max(a)
sum_a = max(a)
print(min_a, max_a, sum_a)

Submission status: Runtime Error

Solution code:
while True:
    num = map(int, raw_input().split())
    if len(num) != 1:
        print max(num),min(num),sum(num)

Submission status: Runtime Error

Solution code:
while True:
    num = map(int, raw_input().split())
    if len(num) != 1:
        print max(num),min(num),sum(num),

Submission status: Runtime Error

Solution code:
while True:
    num = map(int, raw_input().split())
    if len(num) != 1:
        print "%d %d %d" % (min(num),max(num),sum(num))
        break

Submission status: Runtime Error

Solution code:
while True:
    l = map(int, raw_input().split())
    num = map(int, raw_input().split())
    if len(num) != 1:
        print "%d %d %d" % (min(num),max(num),sum(num))
        break

Submission status: Runtime Error

Solution code:
n = int(input())
l = []
for i in range(0,n):
	x = input()
	l.append(int(x))

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
# 09-Computation-Min_Max_and_Sum.py

# ????°????????????§??????????¨????
# n ????????´??° ai(i=1,2,...n)?????\?????????????????????????°????????????§??????????¨????????±???????????????°????????????????????????????????????

# Input
# ??????????????´??°?????° n ???????????????????????????????????? n ????????´??° ai ????????????????????§?????????????????????
# Output
# ????°????????????§??????????¨????????????????????????§????????????????????????????????????

# Constraints
# 0<n???10000
# ???1000000???ai???1000000
# Sample Input
# 5
# 10 1 5 4 17
# Sample Output
# 1 17 37

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

a = []
a=[ *map(int,input().split() ) ]

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(num_sum)
print(num)
print("{0} {1} {2}".format(num_min,num_max,num_sum) );

Submission status: Runtime Error

Solution code:
# 09-Computation-Min_Max_and_Sum.py

# ????°????????????§??????????¨????
# n ????????´??° ai(i=1,2,...n)?????\?????????????????????????°????????????§??????????¨????????±???????????????°????????????????????????????????????

# Input
# ??????????????´??°?????° n ???????????????????????????????????? n ????????´??° ai ????????????????????§?????????????????????
# Output
# ????°????????????§??????????¨????????????????????????§????????????????????????????????????

# Constraints
# 0<n???10000
# ???1000000???ai???1000000
# Sample Input
# 5
# 10 1 5 4 17
# Sample Output
# 1 17 37

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

a = []
a=[ *map(int,input().split() ) ]

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

Submission status: Runtime Error

Solution code:
# 09-Computation-Min_Max_and_Sum.py

# ????°????????????§??????????¨????
# n ????????´??° ai(i=1,2,...n)?????\?????????????????????????°????????????§??????????¨????????±???????????????°????????????????????????????????????

# Input
# ??????????????´??°?????° n ???????????????????????????????????? n ????????´??° ai ????????????????????§?????????????????????
# Output
# ????°????????????§??????????¨????????????????????????§????????????????????????????????????

# Constraints
# 0<n???10000
# ???1000000???ai???1000000
# Sample Input
# 5
# 10 1 5 4 17
# Sample Output
# 1 17 37

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

a = []
# a=[ *map(int,input().split() ) ]

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

Submission status: Runtime Error

Solution code:
# 09-Computation-Min_Max_and_Sum.py

# ????°????????????§??????????¨????
# n ????????´??° ai(i=1,2,...n)?????\?????????????????????????°????????????§??????????¨????????±???????????????°????????????????????????????????????

# Input
# ??????????????´??°?????° n ???????????????????????????????????? n ????????´??° ai ????????????????????§?????????????????????
# Output
# ????°????????????§??????????¨????????????????????????§????????????????????????????????????

# Constraints
# 0<n???10000
# ???1000000???ai???1000000
# Sample Input
# 5
# 10 1 5 4 17
# Sample Output
# 1 17 37

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

a = []
a=[ *map(int,input().split() ) ]

# 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) );

Submission status: Runtime Error

Solution code:
# 09-Computation-Min_Max_and_Sum.py

# ????°????????????§??????????¨????
# n ????????´??° ai(i=1,2,...n)?????\?????????????????????????°????????????§??????????¨????????±???????????????°????????????????????????????????????

# Input
# ??????????????´??°?????° n ???????????????????????????????????? n ????????´??° ai ????????????????????§?????????????????????
# Output
# ????°????????????§??????????¨????????????????????????§????????????????????????????????????

# Constraints
# 0<n???10000
# ???1000000???ai???1000000
# Sample Input
# 5
# 10 1 5 4 17
# Sample Output
# 1 17 37

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

# a = []
# a = [ *map(int,input().split() ) ]


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

Submission status: Runtime Error

Solution code:
# 09-Computation-Min_Max_and_Sum.py

# ????°????????????§??????????¨????
# n ????????´??° ai(i=1,2,...n)?????\?????????????????????????°????????????§??????????¨????????±???????????????°????????????????????????????????????

# Input
# ??????????????´??°?????° n ???????????????????????????????????? n ????????´??° ai ????????????????????§?????????????????????
# Output
# ????°????????????§??????????¨????????????????????????§????????????????????????????????????

# Constraints
# 0<n???10000
# ???1000000???ai???1000000
# Sample Input
# 5
# 10 1 5 4 17
# Sample Output
# 1 17 37

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

# a = []
# a = [ *map(int,input().split() ) ]


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

Submission status: Runtime Error

Solution code:
# 09-Computation-Min_Max_and_Sum.py

# ????°????????????§??????????¨????
# n ????????´??° ai(i=1,2,...n)?????\?????????????????????????°????????????§??????????¨????????±???????????????°????????????????????????????????????

# Input
# ??????????????´??°?????° n ???????????????????????????????????? n ????????´??° ai ????????????????????§?????????????????????
# Output
# ????°????????????§??????????¨????????????????????????§????????????????????????????????????

# Constraints
# 0<n???10000
# ???1000000???ai???1000000
# Sample Input
# 5
# 10 1 5 4 17
# Sample Output
# 1 17 37

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

a = []
a = [ *map(int,input().split() ) ]


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

Submission status: Runtime Error

Solution code:
num = int(input())
num_min = 100001
num_max = -100001
num_sum = 0

a = []
a = [ *map(int,input().split() ) ]


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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n = input()
a = map(int, 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

Submission status: Runtime Error

Solution code:
p(long, raw_input().split())
max = max(n)
min = min(n)
sum = sum(n)
print "%d %d %d" %(min,max,sum)

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
count = input()
data = [int(i) for i in input().sprit()]

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

Submission status: Runtime Error

Solution code:
 input()

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
cnt = int(input())
a,b,c,d,e = map(int, input().split())
li = [a,b,c,d,e]
print(min(li), max(li), sum(li))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
while(ansa=input().split() && ansb=input().split()):

    hit = sum((1 for a, b in zip(ansa, ansb) if a == b))
    blow = sum((1 for a in ansa if a in ansb))

    print(hit, blow-hit)

Submission status: Runtime Error

Solution code:
while True:
    ansa=input().split()
    ansb=input().split()

    if not ansa: break

    hit = sum((1 for a, b in zip(ansa, ansb) if a == b))
    blow = sum((1 for a in ansa if a in ansb))

    print(hit, blow-hit)

Submission status: Runtime Error

Solution code:
while True:
    ansa=input()
    ansb=input()

    if not ansa: break
    ansa = ansa.split()
    ansb = ansb.split()

    hit = sum((1 for a, b in zip(ansa, ansb) if a == b))
    blow = sum((1 for a in ansa if a in ansb))

    print(hit, blow-hit)

Submission status: Runtime Error

Solution code:
while True:
    ansa=input()
    ansb=input()

    if ansa == '\n': break
    ansa = ansa.split()
    ansb = ansb.split()

    hit = sum((1 for a, b in zip(ansa, ansb) if a == b))
    blow = sum((1 for a in ansa if a in ansb))

    print(hit, blow-hit)

Submission status: Runtime Error

Solution code:
while True:
    ansa=input()
    ansb=input()

    ansa = ansa.split()
    ansb = ansb.split()

    hit = sum((1 for a, b in zip(ansa, ansb) if a == b))
    blow = sum((1 for a in ansa if a in ansb))

    print(hit, blow-hit)

Submission status: Runtime Error

Solution code:
while True:
    ansa = input()
    ansb = input()

    if len(ansa) == 0: break 

    ansa = ansa.split()
    ansb = ansb.split()

    hit = sum((1 for a, b in zip(ansa, ansb) if a == b))
    blow = sum((1 for a in ansa if a in ansb))

    print(hit, blow-hit)

Submission status: Runtime Error

Solution code:
while True:
    ansa = input()
    if len(ansa) == 0: break
    ansb = input() 

    ansa = ansa.split()
    ansb = ansb.split()

    hit = sum((1 for a, b in zip(ansa, ansb) if a == b))
    blow = sum((1 for a in ansa if a in ansb))

    print(hit, blow-hit)

Submission status: Runtime Error

Solution code:
while True:
    ansa = input()
    if ansa == '\n': break
    ansb = input()

    ansa = ansa.split()
    ansb = ansb.split()

    hit = sum((1 for a, b in zip(ansa, ansb) if a == b))
    blow = sum((1 for a in ansa if a in ansb))

    print(hit, blow-hit)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n = input()
a = 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

Submission status: Runtime Error

Solution code:
n = input()
a = 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

Submission status: Runtime Error

Solution code:
n=int(input())
l = []
for i in range(n):
    l.append(input())
    
min_l = min(map(int,l))
max_l = max(map(int,l))
sum_l = sum(map(int,l))

print("{0} {1} {2}".format(min_l, max_l, sum_l))

Submission status: Runtime Error

Solution code:
n = int(input())
a = []
for i in range(n):
    a.append(int(input()))

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

Submission status: Runtime Error

Solution code:
n = int(input())
a = []
for i in range(n):
    a.append(int(input()))

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
x = input()
x = x.split("\n")
y = x[1].split(" ")
y = [int(z) for z in y]
cmax = ???1000000
cmin = 1000000
csum = 0
for z in y:
    if cmax < z:
        cmax = z
    if cmin > z:
        cmin = z
    csum += z
print("%d %d %d" % (cmin, cmax, csum))

Submission status: Runtime Error

Solution code:
x = input()
x = x.split()
x = [int(z) for z in x]
#y = x[1].split(" ")
#y = [int(z) for z in y]
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))

Submission status: Runtime Error

Solution code:
x = input()
x = x.split(" ")
x = [int(z) for z in x]
#y = x[1].split(" ")
#y = [int(z) for z in y]
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))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:

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

Submission status: Runtime Error

Solution code:
#coding:utf-8
n = input()
n =  int(n)
j = 0
f = 0
li = []
while n > 0:
    n -= 1
    f = input()
    f = int(f)
    li.append(f)
mn = min(li)
mx = max(li)
sm = sum(li)
print(mn,mx,sm)

Submission status: Runtime Error

Solution code:
import sys

l = [map(int,l.split()) for line in sys.stdin]
n = l[0]
l = l[1]

print "%s %s %s" %(min(l),max(l),sum(l))

Submission status: Runtime Error

Solution code:
import numpy as np
a = input ()
input = np.array(map(int,raw_input().split()))
print np.delete(input, 0).min(axis=0),input.max(axis=0),input.sum(axis=0)

Submission status: Runtime Error

Solution code:
#!usr/bin/env python3

import sys


def string_to_list_spliter():
    lst = [int(i) for i in sys.stdin.readline().split()]
    return lst


def main():
    lst = string_to_list_spliter()
    print(min(lst), max(lst), sum())


if __name__ == '__main__':
    main()

Submission status: Runtime Error

Solution code:
#!usr/bin/env python3

import sys


def string_to_list_spliter():
    sys.stdin.readline()
    lst = [int(i) for i in sys.stdin.readline().split()]
    return lst


def main():
    lst = string_to_list_spliter()
    print(min(lst), max(lst), sum())


if __name__ == '__main__':
    main()

Submission status: Runtime Error

Solution code:
#!usr/bin/env python3

import sys


def string_to_list_spliter():
    n = sys.stdin.readline()
    lst = [int(i) for i in sys.stdin.readline().split()]
    return lst


def main():
    lst = string_to_list_spliter()
    print(min(lst), max(lst), sum())


if __name__ == '__main__':
    main()

Submission status: Runtime Error

Solution code:
n = int(input().split("\"))
i = 0
list_n = [n]

for i in range(0, n-1):
	list_n[i] = int(input().split())

min = min(list_n)
max = max(list_n)
sum = sum(list_n)

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