#include <iostream>
using namespace std;
int main() {
double sum = 0;
double temp = 0;
while (true){
cin >> temp;
if(temp > 50){
break;
}
sum +=temp;
cout << sum << endl;
return 0;
#include <iostream>
using namespace std;
int main() {
double sum = 0;
double temp = 0;
while (true){
cin >> temp;
if(temp > 50){
break;
}
sum +=temp;
}
cout << sum << endl;
return 0;
}