#include <stdio.h>
int main()
{
struct study
{
int mid;
int end;
int ave;
}math;
scanf("%d %d",&math.mid,&math.end);
math.ave=(math.mid+math.end)/2;
printf("ave=%d",math.ave);
return 0;
}
#include <stdio.h>
int main()
{
struct study
{
int num;
int mid;
int end;
int ave;
}a[3],*p;
for(p=s;p<s+3;p++)
{
scanf("%d %d %d",&(p->num),&(p->mid),&(p->end));
p->ave=(p->mid+p->end)/2;
}
for(p=s;p<s+3;p++)
{
printf("%d %d %d %d\n",p->num,p->mid,p->end,p->ave);
return 0;
}