Go: package main

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

var sc = bufio.NewScanner(os.Stdin)

func main() {
	sum := 0.0
	for i := 0; i < 5; i++ {
		sc.Scan()
		s, _ := strconv.Atoi(sc.Text())
		sum += math.Max(float64(s), float64(40))
	}
	fmt.Println(int(sum / 5))

}

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: x=[]
for i in range(5):
    s=int(input())
    if s<40:
        s=40
    x.append(int(s))
t=sum(x)
u=t/5
print(int(u))

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

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

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

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

Python: lst = []
T = 0

for i in range(5):
    r = int(input())
    lst.append(r)

for i in range(5):
    if lst[i] < 40:
        lst[i] = 40

for i in range(5):
    T += lst[i]
    
print(T//5)

Python: a=[input() for i in range(5)]
for i in range(5):
    a[i]=int(a[i])
if a[0]<=40:
    a[0]=40
if a[1]<=40:
    a[1]=40
if a[2]<=40:
    a[2]=40
if a[3]<=40:
    a[3]=40
if a[4]<=40:
    a[4]=40
x=a[0]+a[1]+a[2]+a[3]+a[4]
print(x//5)

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

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

S=[]
if a<40:
    S.append(40)
else:
    S.append(a)

if b<40:
    S.append(40)
else:
    S.append(b)

if c<40:
    S.append(40)
else:
    S.append(c)

if d<40:
    S.append(40)
else:
    S.append(d)

if e<40:
    S.append(40)
else:
    S.append(e)

ave=sum(S)//5
print(ave)

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

Python: 
lst = []

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

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

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

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

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

Python: # coding: utf-8
# Your code here!

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: list=[]
for i in range(5):
   a=int(input())
   if a<40:
      a=40
   list.append(a)

print(int(sum(list)/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
lst=[a,b,c,d,e]
print(int(sum(lst)//5))

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

Python: x=0
for i in range(5):
    n=int(input())
    if n<40:
        n=40
    #print(n)
    x+=n
print(
    format(x/5,'.0f')
    )

Python: # -*- coding: utf-8 -*-
A = int(input())
B = int(input())
C = int(input())
D = int(input())
E = int(input())

score = [A, B, C, D, E]
sum = 0
for i in range(5):
    if score[i] < 40:
        score[i] = 40
    sum += score[i]
ans = int(sum / 5)
print(ans)

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

f=a+b+c+d+e
g=int(f/5)

print(g)

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

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

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


lists=[40 if i<40 else i for i in list]

    
   
ave=sum(lists)/len(lists)
print('{0:.0f}'.format(ave))

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

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

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

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

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

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

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

print(sum(p)//5)

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

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

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

Python: ave = 0
for i in range(5):
    p = int(input())
    if p >= 40:
        ave += p
    else:
        ave += 40

print(int(ave/5))

Python: a=0
for i in range(5):
    x=int(input())
    if x>=40:
        a=a+x
    else:
        a=a+40

print(a//5)

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

Python: mylist = []

for i in range(0, 5):
    val = int(input())
    if val<=40:
        val=40
        val1=str(val)
    else:
        val1=str(val)
    
    if val1:
        mylist.append(val1)

a0=int(mylist[0])
a1=int(mylist[1])
a2=int(mylist[2])
a3=int(mylist[3])
a4=int(mylist[4])


print((a1+a2+a3+a4+a0)//5)

Python: s = 0
for i in range(5):
    a = int(input())
    if a < 40:
         s+=40
    else:
         s+=a
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: Taro = int(input())
Jiro = int(input())
Sabu = int(input())
Siro = int(input())
Hana = int(input())

list1 = []
list1.append(Taro)
list1.append(Jiro)
list1.append(Sabu)
list1.append(Siro)
list1.append(Hana)

list2 = []
for i in range(5):
    if list1[i]>=40:
        list2.append(list1[i])
    
    if list1[i]<40 :
        list2.append(40)

ave = sum(list2)/5
print(int(ave))

Python: # coding: utf-8
# Your code here!

s = 0

for i in range(5) :
    p = int(input())
    
    if p < 40 :
        s += 40
    else :
        s += p
        
print(s // 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: N=0
for i in range(5):
  N=N+max(40,int(input()))
print(N//5)

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

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

Python: lst=[]
for i in range(5):
    a=int(input())
    
    if a>=40:
        a=a
    
    else:
        a=40
    
    lst.append(a)
    
x=sum(lst)
x=int(x/5)
print(x)

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

Python: s=0

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

print(s//5)