#include <bits/stdc++.h> using namespace std; int main(){double x,s=0;for(int i=0;i<12;i++){cin>>x;if(x>800)s+=(x-800)*.2;}cout<<fixed<<setprecision(2)<<s<<"\n";}