Many documents use a specific format for a person's name. Write a program that reads a person's name in the following format firstName middleName lastName (in one line) and outputs the person's name in the following format lastName, firstinitial middielnitial. Ex: if the input is: Pat 3111 y Doe the output is: Doe, P.5. If the input has the following format: firstNarne lastName (in one line) the output is: lastName, firstinitial. Ex: If the input is: Julia clatk the output is: clark, J.main.py Run your program as often as you'd like, before submitting for grading. Be input values in the first box, then click Run program and observe the progr second box. Enter program input (optional)Program errors displayed here File "main.py", line 10 first=name [0] SyntaxError: invalid syntax.