Answer:
names = input()
names = names.split(';')
for name in names:
splited_name = name.split(',')
print( splited_name[1][0] , '.' , splited_name[0])
Step-by-step explanation:
I'm gonna give you a answer in python , and explane each line next
Step 1: Read the string of names
names = input()
Step 2: Get splited each name by semicolon ';'
names = names.split(';')
Step 3: Loop in all names
for name in names:
Step 4: Get a name and last name splited:
splited_name = name.split(',')
Step 5: Print the first character of the name with '.' and the last name
print( splited_name[1][0] , '.' , splited_name[0])