#include <iostream>
#include <iomanip>
using namespace std;
 
int main() {
	float A, B, C, MEDIA;
	cin >> A >> B >> C;
	MEDIA = ((A * 2) + (B * 3) + (C * 5)) / (2 + 3 + 5);
	cout << fixed << setprecision(1);
	cout << "MEDIA = " << MEDIA << endl;
	return 0;
}
