If grade < 38, leave it. Else round up to next multiple of 5 when the gap is less than 3.
Input
4 73 67 38 33
Output
75 67 40 33