6.6 LAB Name Format
6.6 LAB Name Format
6.6 LAB Name Format
complete_name=input().split()
length=len(complete_name)
if length==3:
print(complete_name[2]+", "+complete_name[0][0]+"."+complete_name[1][0]+".")
if length==2:
print(complete_name[1]+", "+complete_name[0][0]+".")