Go: package main

import (
	"bufio"
	"fmt"
	"os"
	"strconv"
)

var sc = bufio.NewScanner(os.Stdin)

func nextInt() int {
	sc.Scan()
	n, _ := strconv.Atoi(sc.Text())
	return n
}

func main() {
	sc.Split(bufio.ScanWords)

	sum := 0
	for i := 0; i < 5; i++ {
		x := nextInt()
		if x < 40 {
			sum += 40
		} else {
			sum += x
		}
	}
	fmt.Println(sum / 5)
}

Python: s = 0
for i in range(5):
    a = int(input())
    if a < 40:
        a = 40
    s += a

print(s//5)

Python: point=[int(input())for i in range(5)]
t=0
for p in point:
    if p<40:t+=40
    else:t+=p
print(t//5)

Python: total = 0
for _ in range(5):
    score = int(input())
    if score < 40:
        score = 40
    total += score

print(total // 5)

Python: #(43)平均点
a=[]
for i in range(5):
     n=int(input())
     a.append(n)
for _ in range(5):
     if a[_]<40:
          a[_]=40
sum=0
for l in range(5):
     b=a[l]
     sum+=b
av=sum//5
print(av)

Python: sum = 0
for i in range(5):
    a = int(input())
    if a < 41:
        sum = sum + 40
    else:
        sum = sum + a

print(sum//5)

Python: a=int(input())
b=int(input())
c=int(input())
d=int(input())
e=int(input())
if a < 40:
    a=40
if b < 40:
    b=40
if c < 40:
    c=40
if d < 40:
    d=40
if e < 40:
    e=40

print((a+b+c+d+e)//5)

Python: print(int(sum([max(40, int(input())) for _ in range(5)]) / 5))

Python: a=int(input())
b=int(input())
c=int(input())
d=int(input())
e=int(input())

if a<40:
    a=40
else:
    pass
if b<40:
    b=40
else:
    pass
if c<40:
    c=40
else:
    pass
if d<40:
    d=40
else:
    pass
if e<40:
    e=40
else:
    pass

print((a+b+c+d+e)//5)

Python: s=0
for i in range(5):
    a=int(input())
    if a<=40:
        a=40
    s=s+a
print(s//5)

Python: sum=0
for i in range(5):
    s=int(input())
    if s<40:
        s=40
    sum+=s
print(sum//5)

Python: x=[]
sum=0
for i in range(5):
    n=int(input())
    if n<=40:
        n=40
    sum+=n
    x.append(n)
    

print(sum//5)

Python: a = int(input())
b = int(input())
c = int(input())
d = int(input())
e = int(input())

if a <= 40:
    a = 40
if b <= 40:
    b = 40
if c<= 40:
    c = 40
if d <= 40:
    d = 40
if e <= 40:
    e = 40
    
sum = a+b+c+d+e
ave = int(sum/5)
print(ave)

Python: try:
   sum = 0
   for i in range(5):
      s = int(input())
      if s >= 40:
         sum += s
      else:
         sum += 40
   print(int(sum / 5))

except EOFError:
   pass

Python: a = []
for i in range(5):
    n = int(input())
    if n < 40:
        n = 40
    a.append(n)
print(sum(a)//5)

Python: a=int(input())
if a<40:
    a=40   
b=int(input())
if b<40:
    b=40  
c=int(input())
if c<40:
    c=40
d=int(input())
if d<40:
    d=40
e=int(input())
if e<40:
    e=40   
print(int((a+b+c+d+e)/5))

Python: a=0
for i in range(5):
	b=int(input())
	if b<40: b=40
	a+=b
print(a//5)

Python: import math

list=[]
for i in range(5):
    n=int(input())
    if n<40:
        n=40
    list.append(n)

ave = sum(list) / len(list)
 
print(math.floor(ave))

Python: x=[]
sum=0
for i in range(5):
    y=int(input())
    if y<40:
        y=40
    sum+=y
    x.append(y)
print(int(sum/5))

Python: a=[]
for i in range(5):
    a.append(int(input()))
    if a[i]<40:
        a[i]=40
print(int(sum(a)/len(a)))

Python: x=0
for i in range(5):
    n=int(input())
    if n<40:
        x+=40
    else:
        x+=n
print(x//5)

Python: tensuu=[]

for i in range(5):
    n=int(input())
    if n<40:
        tensuu.append(40)
    else:
        tensuu.append(n)
    

print(sum(tensuu)//5)

Python: sum=0
for i in range(5):
  a=int(input())
  if a<40:
    a=40
  sum+=a
print(sum//5)

Python: #43 平均点

s = 0
for i in range(5):
        a = int(input())
        if a<40:
                a=40
        s += a
        
print(s//5)

Python: s=0
for i in range (5):
    n=int(input())
    if n<=40:
        l=40
    else:
        l=n
    s+=l
print(f'{s/5:.0f}')

Python: def is_odd(n):
    return(n<40)

a=int(input())
b=int(input())
c=int(input())
d=int(input())
e=int(input())

m=[a, b, c, d, e]
k=filter(is_odd, m)
t=list(k)
f=len(t)

def is_odd(x):
    return(x>=40)
s=filter(is_odd, m)
l=list(s)
print((sum(l)+f*40)//5)

Python: list=[]
for i in range(5):
   a=int(input())
   if a<40:
      a=40
   list.append(a)

print(int(sum(list)/5))

Python: seiseki = []
for a in range(5):
  seiseki.append(int(input()))
for b in range(5):
  if seiseki[b] < 40:
    seiseki[b] = 40
print(sum(seiseki)//5)

Python: x=0
for i in range(5):
    y=int(input())
    if y < 40 :
        y=40
    x+=y
print(x//5)

Python: s=0
for i in range(5):
  a=int(input())
  if a < 40:
    a = 40
  s += a
print(s//5)

Python: a = int(input())
b = int(input())
c = int(input())
d = int(input())
e = int(input())

n=[a,b,c,d,e]
for i in range(5):
  if n[i] < 40:
    n[i] = 40

print(sum(n)//5)

Python: tensu=[]
i=0
while i<5:
    s=int(input())
    tensu.append(s)
    i+=1
sum=0
for i in range(5):
    if tensu[i]>=40:
        sum+=tensu[i]
    else:
        sum+=40
ave=sum//5
print(ave)

Python: i=0
y=0
while i<5 :
    x=int(input())
    if x<40 : x=40
    y=y+x
    i=1+i
print(y//5)

Python: a=int(input())
b=int(input())
c=int(input())
d=int(input())
e=int(input())
x = (a,b,c,d,e)

y = [i if i>40 else 40 for i in x]
z = sum(y)//5
print(z)

Python: s=0
y=[]
for i in range(1,6):
    x=int(input())
    if x>=40:
        y.append(x)
    else:
        y.append(40)
        
for i in range(0,5):
    s+=y[i]

print(int(s/5))

Python: tensu=[None]*5
for i in range(5):
    tensu[i]=int(input())
    if tensu[i]<40:
        tensu[i]=40
total=0
for i in range(5):
    total+=tensu[i]
k=total/5
print(int(k))

Python: a = [int(input()) for i in range(5)]
for b in range(5):
    if a[b] < 40:
        a[b] = 40
c = sum(a)/5    
print('{:.0f}'.format(c))

Python: a = 0
for i in range (5):
    n = int(input())
    if n <= 40:
        n = 40
    a += n
print(a//5)

Python: num=[]
for i in range(5):
    x=int(input())
    if x<=40:
        x=40
    else:
        pass
    num.append(x)
    

date=sum(num)

y=int(date/5)
print(y)

Python: sum=0
for i in range(5):
    score=int(input())
    if score<40:
        score=40
    sum+=score
    heikin=sum//5
print(heikin)

Python: s = 0

for i in range(5) :
    p = int(input())
    
    if p < 40 :
        s += 40
    else :
        s += p
        
print(s // 5)

Python: a=[]
for i in range(5):
	a.append(max(40,int(input())))
print(int(sum(a)/len(a)))

Python: s = 0
for i in range(5):
    p = int(input())
    if p <= 40 :
        p=40
    s+=p
print(s//5)

Python: a=0
for i in range(5):
    b=int(input())
    if b<40:
        b=40
    a+=b
    
print(a//5)

Python: a=[]
for i in range(5):
    b=int(input())
    if b<40:
        b=40
    a.append(b)
print(sum(a)//len(a))

Python: list=[int(input()) for i in range(5)]
for i in range(5):
    if list[i]<40:
        list[i]=40
        i+=1
    else:
        i+=1
ave = sum(list)//len(list)
print(ave)

Python: import math
a = int(input())
b = int(input())
c = int(input())
d = int(input())
e = int(input())
if a<40:
    a = 40
if b<40:
    b = 40
if c<40:
    c = 40
if d<40:
    d = 40
if e<40:
    e = 40
s = [a,b,c,d,e]
print(math.floor(sum(s)/5))

Python: # coding: utf-8
# Your code here!
a=int(input())
b=int(input())
c=int(input())
d=int(input())
e=int(input())

if a<40:
    a=40
if b<40:
    b=40
if c<40:
    c=40
if d<40:
    d=40
if e<40:
    e=40

print(int(sum((a,b,c,d,e))/5))

Python: 
s=0
taro = int(input())
if taro<40:
    taro=40
s+=taro    
ziro = int(input())
if ziro<40:
    ziro=40
s+=ziro    
saburo = int(input())
if saburo<40:
    saburo=40
s+=saburo
siro = int(input())
if siro<40:
    siro=40
s+=siro
hanako = int(input())
if hanako<40:
    hanako=40
s+=hanako
print(s//5)

Python: list=[int(input()) for j in range(5)]

sum=0
for i in range(5):
    if list[i]<40:
        list[i]=40
    sum+=list[i]
print(int(sum/5))

Python: a=0
for i in range(5):
    b=int(input())
    if b<40:
        b=40
    a+=b
    
print(a//5)