#include<bits/stdc++.h>
using namespace std;
int main(){
	float a,b,c,h;
	cin>>a>>b>>c;
	if((a+b+c)>=200)h=(a+b+c)*0.8;
	else h=(a+b+c)*0.9;
	printf("%.1f",h);
	return 0;
}

/**************************************************************
	Problem: 1624
	User: tangkaixuan
	Language: C++
	Result: Accepted
	Time:12 ms
	Memory:2072 kb
****************************************************************/