Problem F
Format Name
Write a program that, given a name
Input
Input consists of one line, the string
Output
Output consists of one line, the transformed name.
Sample Input 1 | Sample Output 1 |
---|---|
ghandi, mahatma |
M. Ghandi |
Sample Input 2 | Sample Output 2 |
---|---|
jakobsdottir, katrin |
K. Jakobsdottir |