시간 제한 메모리 제한 제출 정답 맞은 사람 정답 비율
1 초 128 MB 13426 9696 8771 73.880%

문제

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

어제 이 수업의 기말고사가 있었고, 상현이는 지금 학생들의 기말고사 시험지를 채점하고 있다. 기말고사 점수가 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+XHJ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