Problem:


問題 1: 平均点 (Average Score)

問題

JOI 高校の授業には，太郎君，次郎君，三郎君，四郎君，花子さんの 5 人の生徒が参加した．

この授業では，期末試験を実施した．期末試験は，5 人全員が受験した．期末試験の点数が 40 点以上の生徒は，期末試験の点数がそのまま成績になった．期末試験の点数が 40 点未満の生徒は全員，補習を受け，成績が 40 点になった．

5 人の生徒の期末試験の点数が与えられたとき，5 人の成績の平均点を計算するプログラムを作成せよ．

 入力

入力は 5 行からなり，1 行に 1 つずつ整数が書かれている． 

1 行目には 太郎君の期末試験の点数が書かれている． 

2 行目には 次郎君の期末試験の点数が書かれている． 

3 行目には 三郎君の期末試験の点数が書かれている． 

4 行目には 四郎君の期末試験の点数が書かれている． 

5 行目には 花子さんの期末試験の点数が書かれている． 

生徒の期末試験の点数はすべて 0 点以上 100 点以下の整数である． 

生徒の期末試験の点数はすべて 5 の倍数である． 

5 人の生徒の成績の平均点は必ず整数になる．

 出力

5 人の生徒の成績の平均点をあらわす整数を 1 行で出力せよ．

 入出力例

入力例 1

  

10
65
100
30
95

出力例 1

   

68

入出力例 1 では，太郎君と四郎君の期末試験の点数は 40 点未満なので，太郎君と四郎君の成績は 40 点になる．次郎君と三郎君と花子さんの期末試験の点数は 40 点以上なので，次郎君の成績は 65 点，三郎君の成績は 100 点，花子さんの成績は 95 点となる．5 人の成績の合計は 340 なので，平均点は 68 点となる．

入力例 2

  

40
95
0
95
50

出力例 2

   

64

問題文と自動審判に使われるデータは、情報オリンピック日本委員会が作成し公開している問題文と採点用テストデータです。



Sample input:
10
65
100
30
95


Sample output:
68

Submission status: Wrong Answer

Solution code:
print sum([input() for i in [1]*5])/5

Submission status: Accepted

Solution code:
# coding: utf-8

from statistics import mean

scores = [int(input()) for i in range(5)]
scores = list(map(lambda x: max(40, x), scores))
print(mean(scores))

Submission status: Accepted

Solution code:
tot=0
for i in range(5):
    tot+=max(int(raw_input()),40)
print tot/5

Submission status: Accepted

Solution code:
s = 0
for i in range(5):
    n = input()
    n = 40 if n < 40 else n
    s += n
print s / 5

Submission status: Accepted

Solution code:
total = 0
for i in xrange(5):
    total += max(input(), 40)
print total/5

Submission status: Accepted

Solution code:
ans = 0
for i in range(5):
    ans += max(40,int(input())) // 5
print(ans)

Submission status: Accepted

Solution code:
print sum(max(input(), 40) for _ in range(5))/5

Submission status: Accepted

Solution code:
if __name__ == '__main__':
    # ??????????????\???
    scores = [int(input()) for _ in range(5)]

    # ??????????????????
    final_scores = [max(s, 40) for s in scores]

    # ???????????????
    print('{0}'.format(sum(final_scores)//len(final_scores)))

Submission status: Accepted

Solution code:
a = []
for _ in range(5):
    x = int(input())
    a.append(x if x>= 40 else 40)
print(sum(a)//5)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def main():
    a = []
    for _ in range(5):
        hoge = int(input())
        if hoge < 40:
            hoge = 40
        else:
            pass
        a.append(hoge)

    total = 0
    for score in a:
        total += score

    print(total // 5)


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
scores = [int(input()) for _ in range(5)]
print(sum([(score < 40) * 40 + (score >= 40) * score for score in scores]) // 5)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# AOJ 0592: Average Score
# Python3 2018.6.30 bal4u

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

Submission status: Accepted

Solution code:
score = [input() for i in range(5)]
print sum(s if s >= 40 else 40for s in score) / 5

Submission status: Accepted

Solution code:
sum = 0
for i in range(5):
  sum += max(40, input())
print sum / 5

Submission status: Accepted

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

Submission status: Accepted

Solution code:
print sum([max(40,input()) for i in [1]*5])/5

Submission status: Accepted

Solution code:
print sum([max(8,input()/5) for i in [1]*5])

Submission status: Accepted

Solution code:
print(sum(max(40, int(input())) for i in range(5)) // 5)

Submission status: Accepted

Solution code:
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:
   pas

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

print(a//5)

Submission status: Accepted

Solution code:
a = []

for i in range(5):
    n = int(input())
    if n >= 40:
        a.append(n)
    else:
        a.append(40)
        
s = sum(a)
t = s/5
print("{:.0f}".format(t))

Submission status: Accepted

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

Submission status: Accepted

Solution code:

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)

Submission status: Accepted

Solution code:
tensu=[]

for i in range(5):
    a=int(input())
    if a < 40:a=40
    tensu.append(a) #要素の追加
print((sum(tensu))//5)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a=[]
sum=0
for i in range(5):
    n=int(input())
    if n>=40:
        a.append(n)
    else:
        a.append(40)
    sum +=a[i]

print(sum//5)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
sum=0
for i in range(5):
    n=int(input())
    if n < 40:
        n = 40
    sum += n
    avg=sum//5
print(avg)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#(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)

Submission status: Accepted

Solution code:
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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
sum=0
for i in range(5):
    a=int(input())
    for j in range(5):
        if a<40:
            a=40
        else:
            a=a
    sum+=a
    

print(int(sum/5))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# 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))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

print(s//5)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
N=5
sum=0
for _ in range(N):
    i=int(input())
    if 40<i:
        sum=sum+i
        
    else:
        i=40
        sum=sum+40
print(sum//5)

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

print(int(ave/5))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
l=[]
for i in range(5):
    n=int(input())
    if n>40:
        l.append(n)
    else:
        l.append(40)
ave = sum(ｌ) / 5
print(int(ave))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s=0

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

print(s//5)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
list=[]
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
list.append(a)
list.append(b)
list.append(c)
list.append(d)
list.append(e)    
ave=sum(list)//len(list)
print(str(ave))

Submission status: Accepted

Solution code:
tensuu=[]

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

print(sum(tensuu)//5)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
lst=[]
for i in range(5):
    x=int(input())
    if x<40:
        x=40
    lst.append(x)
print(sum(lst)//5)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
k1=int(input())
k2=int(input())
k3=int(input())
k4=int(input())
k5=int(input())
k=0
for i in (k1,k2,k3,k4,k5):
    if i<40:
        k+=40
    else:
        k+=i
print(k//5)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#(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)

Submission status: Accepted

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

Submission status: Accepted

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


ave = sum(lst)/5
print(f'{ave:.2g}')

Submission status: Accepted

Solution code:
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}')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

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)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# 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)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#43 平均点

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
lst=[]
for i in range(5):
    s=int(input())
    if s<40:
        s=40
    lst.append(s)

sm=sum(lst)
print(sm//5)

Submission status: Accepted

Solution code:
j=0
a=list()
for j in range(5):
    b=int(input())
    if b<40:
        a.append(40)
    else:
        a.append(b)
    j+=1
print(sum(a)//5)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = []
t = 0
i = 1
while i <= 5:
    b = int(input())
    a.append(b)
    i += 1
for j in range(5): 
    if a[j] < 40:
        a[j] = 40
    t += a[j]
print(t//5)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

print(sum//5)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8
# 43

A = [int(input()) for i in range(5)]
#print(A)

for i in range(5):
    if A[i]<40:
        A[i] = 40
    else:
        pass
print(sum(A)//len(A))

Submission status: Accepted

Solution code:
s=0
for i in range(5):
    a=int(input())
    if a>=40:
        s+=a
    else:
        s+=40
print(int(s/5))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

lst = []

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# 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

Submission status: Accepted

Solution code:
a=[]
i=0
while i<5:
    b=int(input())
    if b<40:
        b=40
    
    a.insert(i,b)
    i+=1

print(int(sum(a)/len(a)))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

print(sum//5)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x=[]
for i in range(5):
    s=int(input())
    if s<40:
        s=40
    x.append(int(s))
total=sum(x)
ave=total/5
print(int(ave))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = 0

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

Submission status: Accepted

Solution code:
N=0
for i in range(5):
  N=N+max(40,int(input()))
print(N//5)

Submission status: Accepted

Solution code:
scores = []
for _ in range(5):
    score = int(input())
    if score < 40:
        scores.append(40)
    else:
        scores.append(score)
print(sum(scores)//5)

Submission status: Accepted

Solution code:
from statistics import mean

score = [int(input()) for i in range(5)]
score = [score[i] if score[i] >= 40 else 40 for i in range(5)]

print(mean(score))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A=[int(input()) for i in range(5)]
A=[40 if A[i]<40 else A[i] for i in range(5)]
print(sum(A)//5)

Submission status: Accepted

Solution code:
#A問題
S = 0
for i in range(5):
    s = int(input())
    s = max(s,40)
    S+=s
    
print(S//5)

Submission status: Accepted

Solution code:
# -*- 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)

Submission status: Accepted

Solution code:
p=0
for _ in range(5):
    p1=int(input())
    if p1<40:
        p1=40
    p+=p1
print(p//5)

Submission status: Accepted

Solution code:
a = [int(input()) for _ in range(5)]
b = [a if a >= 40 else 40 for a in a]
print(sum(b) // 5)