//課題012
//これは上底と下底と高さから台形の面積を表示するプログラムです
//             2026.06.10 24A2021 伊藤宗兼
#include <stdio.h>

int main(void) {
	int upperbase;   //上底
	int bottombase;   //下底
	int height; //高さ
	int area;   //面積

	scanf("%d", &upperbase);
	scanf("%d", &bottombase);
	scanf("%d", &height);

	area = ((upperbase + bottombase) * height) / 2;
	printf("上底が%d、下底が%d、高さが%dの面積は%dです。￥n",upperbase, bottombase, height, area);
	return 0;
}
