#include <iostream>
#include <iomanip>
#include <cmath>
using namespace std;

int main() {
    int number;
    char ch;
    double c_score, math_score, english_score;

    // 依次输入学号,c语言成绩,数学成绩,英语成绩
    cin >> number >> ch >> c_score >> ch >> math_score >> ch >> english_score;

    // 由于浮点数在内存中的表示有微小误差时,所以我们需要调用cmath库里面的round函数来手动进行四舍五入到两位小数
    c_score = round(c_score * 100) / 100;
    math_score = round(math_score * 100) / 100;
    english_score = round(english_score * 100) / 100;

    // 输出格式:固定小数位数,并且注意要保留两位小数
    cout << fixed << setprecision(2);
    cout << "The each subject score of No. " << number << " is "
         << c_score << ", " << math_score << ", " << english_score << "." << endl;

    return 0;
}