n=input().split(";")
id=n[0]
score=n[1]
num=score.split(',')
score1=format(float(num[0])+0.0001,".2f")
score2=format(float(num[1])+0.0001,".2f")
score3=format(float(num[2])+0.0001,".2f")
print("The each subject score of No. "+id+" is "+score1+", "+score2+", "+score3+'.')