시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 128 MB51824330502974664.946%

문제

상현이가 가르치는 아이폰 앱 개발 수업의 수강생은 원섭, 세희, 상근, 숭, 강수이다.

어제 이 수업의 기말고사가 있었고, 상현이는 지금 학생들의 기말고사 시험지를 채점하고 있다. 기말고사 점수가 40점 이상인 학생들은 그 점수 그대로 자신의 성적이 된다. 하지만, 40점 미만인 학생들은 보충학습을 듣는 조건을 수락하면 40점을 받게 된다. 보충학습은 거부할 수 없기 때문에, 40점 미만인 학생들은 항상 40점을 받게 된다.

학생 5명의 점수가 주어졌을 때, 평균 점수를 구하는 프로그램을 작성하시오.

입력

입력은 총 5줄로 이루어져 있고, 원섭이의 점수, 세희의 점수, 상근이의 점수, 숭이의 점수, 강수의 점수가 순서대로 주어진다.

점수는 모두 0점 이상, 100점 이하인 5의 배수이다. 따라서, 평균 점수는 항상 정수이다. 

출력

첫째 줄에 학생 5명의 평균 점수를 출력한다.

예제 입력 1

10
65
100
30
95

예제 출력 1

68

힌트

숭과 원섭이는 40점 미만이고, 보충학습에 참여할 예정이기 때문에 40점을 받게 된다. 따라서, 점수의 합은 340점이고, 평균은 68점이 된다.

W3sicHJvYmxlbV9pZCI6IjEwMDM5IiwicHJvYmxlbV9sYW5nIjoiMCIsInRpdGxlIjoiXHVkM2M5XHVhZGUwIFx1YzgxMFx1YzIxOCIsImRlc2NyaXB0aW9uIjoiPHA+XHVjMGMxXHVkNjA0XHVjNzc0XHVhYzAwIFx1YWMwMFx1Yjk3NFx1Y2U1OFx1YjI5NCBcdWM1NDRcdWM3NzRcdWQzZjAgXHVjNTcxIFx1YWMxY1x1YmMxYyBcdWMyMThcdWM1YzVcdWM3NTggXHVjMjE4XHVhYzE1XHVjMGRkXHVjNzQwIFx1YzZkMFx1YzEyZCwgXHVjMTM4XHVkNzZjLCBcdWMwYzFcdWFkZmMsIFx1YzIyZCwgXHVhYzE1XHVjMjE4XHVjNzc0XHViMmU0LjxcL3A+XHJcblxyXG48cD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