P27220 [AtCoder] Average Score
普及
题目描述

Problem Description

In a class at JOI High School, there were 5 students: Taro, Jiro, Saburo, Shiro, and Hanako.

The class had a final exam, which all 5 students took. Students who scored 40 points or more on the final exam had their scores directly counted as their grades. Students who scored less than 40 points had to attend remedial classes, after which their grades were set to 40 points.

Given the final exam scores of the 5 students, write a program to calculate the average grade of the 5 students.


Input Format

The input consists of 5 lines, each containing an integer.
The first line contains Taro's final exam score.
The second line contains Jiro's final exam score.
The third line contains Saburo's final exam score.
The fourth line contains Shiro's final exam score.
The fifth line contains Hanako's final exam score.

All students' final exam scores are integers between 0 and 100 inclusive.
All students' final exam scores are multiples of 5.
The average grade of the 5 students is always an integer.

Output Format

Output the average grade of the 5 students as an integer on one line.


Sample Input and Output

Sample Input #1

10
65
100
30
95

Sample Output #1

68

Sample Input #2

40
95
0
95
50

Sample Output #2

64

Notes/Hints

Sample Explanation 1

In Sample Input #1, Taro and Shiro's final exam scores are less than 40 points, so their grades are 40 points each. Jiro, Saburo, and Hanako's final exam scores are 40 points or more, so their grades are 65, 100, and 95 points respectively. The total of the 5 grades is 340, so the average grade is 68 points.

输入格式

见题面 Input 部分

输出格式

见题面 Output 部分

样例输入
10 65 100 30 95
样例输出
68