//JavaScript Node(12.x.x)
var readline = require('readline')
// 创建输入输出接口
const rl = readline.createInterface({
input: process.stdin,
output: process.stdout,
})
// 监听控制台的输入
// 就是在用户输入一行 按下回车的时候就会触发的事件,他会将用户输入的数据通过回调函数传回来。
rl.on('line', function (line) {
let tokens = line.split(/;|,/);
let a1 = tokens[0]
let a2 = tokens.slice(1)
a2.forEach((value, index) => {
a2[index] = +value;
});
let a3 = a2.map((value) => {
return (Math.round(value*100)/100).toFixed(2);
});
console.log(
"The each subject score of No. "+a1+" is "+a3[0]+", "+a3[1]+", "+a3[2]+"."
);
rl.close() //关闭 readline.Interface 实例
})