a, b=input().split(';')
x, y, z=[float(i)+0.0001 for i in b.split(',')]
print('The each subject score of No. {} is {:.2f}, {:.2f}, {:.2f}.'.format(a,x,y,z))
a, b=input().split(';')
x, y, z=[float(i)+0.0001 for i in b.split(',')]
print('The each subject score of No. {} is {:.2f}, {:.2f}, {:.2f}.'.format(a,x,y,z))