#include "stdio.h"
#include "math.h"
int main() {
double s1 = 86 + 74 + 92 + 77 + 82;
double s2 = 81 + 87 + 90 + 62 + 88;
double s = (s1 * 30 / 100) + (s2 * 70) / 100;
printf("total=%.2f\n", s);
printf("average=%.2f\n", s / 5);
printf( "average=%d\n", (int)(s / 5));
return 0;
}