#include <iostream>
#include <iomanip>
#include <map>
#include <set>
#include <cmath>
#include <vector>
#include <climits>
#include <string>
#include <algorithm>
#include <sstream>
#include <numeric>
using namespace std;

vector<string> split(string haystack, string needle) {
    vector<string> result;
    int startPos = 0;
    int foundPos = haystack.find(needle, startPos);
    while (foundPos != string::npos) {
        int count = foundPos - startPos;
        string token = haystack.substr(startPos, count);
        if (!token.empty()) {
            result.push_back(token);
        }
        startPos = foundPos + needle.length();
        foundPos = haystack.find(needle, startPos);
    }
    string token = haystack.substr(startPos, haystack.length() - startPos);
    if (!token.empty()) {
        result.push_back(token);
    }
    return result;
}

string nameConvert(const string& name) {
    const string DELIMITER = " ";
    stringstream builder;
    auto parts = split(name, DELIMITER);
    for (auto part : parts) {
        part[0] = toupper(part[0]);
        transform(part.begin() + 1, part.end(), part.begin() + 1, ::tolower);
        builder << part << DELIMITER;
    }
    return builder.str();
}

string dateConvert(const string& date) {
    const string DELIMITER = "/";
    stringstream builder;
    auto parts = split(date, DELIMITER);
    builder << setw(2) << setfill('0') << parts[0] << DELIMITER;
    builder << setw(2) << setfill('0') << parts[1] << DELIMITER;
    builder << parts[2];
    return builder.str();
}

class Student {
private:
    string name, dob;
    double gradeOne, gradeTwo, gradeThree;

public:
    Student(string name, string dob, double gradeOne, double gradeTwo, double gradeThree) :
        name(name), dob(dob), gradeOne(gradeOne), gradeTwo(gradeTwo), gradeThree(gradeThree) {
    };

public:
    string toString() {
        stringstream builder;
        builder << name << " " << dob << " " << fixed << setprecision(1) << (gradeOne + gradeThree + gradeTwo) << endl;
        return builder.str();
    }
};

int main() {
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    
    string name, dob;
    double gradeOne, gradeTwo, gradeThree;

    getline(cin, name);
    getline(cin, dob);
    cin >> gradeOne >> gradeTwo >> gradeThree;

    Student student{ name,dob,gradeOne,gradeTwo,gradeThree };

    cout << student.toString();
    return 0;
}

